write a c program nisha is going to plant 'x' number of trees today.If she plants 5 rows of tree,compute how many trees will be in each row?(assume each row has the same number of trees) c program
Answers
Answered by
2
#include<stdio.h>
#include<conio.h>
void main()
{
int x;
printf("Enter no. of rows of trees Nisha has to plant:");
scanf("%d",&x);
int s=x*x
printf("Nisha planted "+s+" trees");
getch();
}
Similar questions