Program to find area of circle in C language. (Program 04)
/*Made by Anmol main
Student B.tech Cse
Punjabi university
Hindustan Coding
Program 04*/
#include<stdio.h>
#define pi 3.14
int main()
{int a; //write the fixed values of a and b if not then take it from the user
float area;
printf("Enter radius of the circle\n");
scanf("%d",&a);
area = pi*a*a;
printf("\nArea of the circle is %0.3f",area);
return 0;
}
Comments