Learn C ProgrammingLearn ProgrammingPrograms On Arithmetic OperatorsResources

006. Write a program to print area of a circle. A(circle)= 3.142 * R * R in C language

By September 18, 2012 February 5th, 2018 No Comments
  1. #include<stdio.h>
  2. #include<conio.h>
  3. main()
  4. {
  5. float AREA,R;
  6. clrscr();
  7. printf("Enter Radius: ");
  8. scanf("%f",&R);
  9. AREA=3.14*R*R;
  10. printf("Area of the given is : %6.2f",AREA);
  11. getch();
  12. }
#include<stdio.h>
#include<conio.h>  
main()
{
 float AREA,R;
 clrscr();
 printf("Enter Radius: ");
 scanf("%f",&R);
 AREA=3.14*R*R;
 printf("Area of the given is : %6.2f",AREA);
 getch();
}

Leave a Reply

DEMO01