Total Pageviews

Program to accept value of radius and print area of a circle


 Program to accept value of radius and print area of a circle.

#include
#include
void main()
{
  float area,radius;
  clrscr();
  printf("Enter Radius:");
  scanf("%f",&radius);
  area=3.14*radius*radius;
  printf("Area of the given radius is : %6.2f",area);
  getch();
}

No comments:

Post a Comment

Thank you