//write a program to print the area of circle its radius to be input by the user.
#include<stdio.h>
int main()
{
int r;
float area;
printf("Enter the radius of circle: ");
scanf("%d",&r);
area=3.14*r*r;
printf("Area of circle is %f",area);
return 0;
}
No comments:
Post a Comment
Please Do Not Enter Any Spam Link In The Comment Box.