Write a C Program to find the area of circle. - Pratik Ghelani

Pratik Ghelani

Breaking

Thursday, January 10, 2019

Write a C Program to find the area of circle.

Program:-

#include <stdio.h> 
int main()
{
int r;
float a;
printf("enter radius of the circle: ");
scanf("%d",&r);
a=(3.14*r*r)/7;
printf("area of circle is: %f\n",a);


}


Output:-



No comments:

Post a Comment