Pages

Thursday, 8 January 2015

C Program To Find The Area of Circle

/*  Find the area of circle */

For any query regarding c/c++ feel free to contact me on khimanichirag@gmail.com or comment below. I try my best to solve it.

 #include<stdio.h>  
 #include<conio.h>  
 void main()  
 {  
   int r;  
   float area=0.0;  
   clrscr();  
   printf("Enter the radius of circle");  
   scanf("%d",&r);  
   area=3.14*r*r;  
   printf("Area of circle is: %f",area);  
   getch();  
 }  

No comments:

Post a Comment