#include<stdio.h>
void main()
{
int r=10;
float pi=3.14,c;
c=pi*r*r;
printf("Area of the circle=%f",c);
getch();
}
Chat with our AI personalities
Rewrite the above program so that the program accepts any value for the radius then recalculate the area of the circle.
In which computer language?
Area of any circle = pi*radius squared
give an example of calculation of mathematics
Pi can be used to calculate the area of a circle Pi can be used to calculate the circumference of a circle