program to find Area of circle

program to find Area of circle

#include<stdio.h>
void main()
  {
  
  float r,areaofcircle;
  const float PI=3.144;
  
  printf("enter the value of r: ");
  scanf ("%f",&r);
  
  areaofcircle=PI*r*r;
  
  printf("area of circle is : %f \n ",areaofcircle);
  }
  
out put :-
   

No comments:

hia friends you are seeing my blogger thank's. Powered by Blogger.