sahajjain01

05.Input radius and calc area and circumference of circle.

Aug 16th, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1. //Program to input radius and calculate area and circumference of circle.
  2. #include<stdio.h>
  3. #include<conio.h>
  4.  
  5. void main()
  6. {
  7.     float radius;
  8.  
  9.     clrscr();
  10.  
  11.     printf("Enter radius of the circle: ");
  12.     scanf("%f", &radius);
  13.     printf("The circumference of circle of radius %f is: %f\nThe area of circle of radius %f is: %f", radius, 2*3.14*radius, radius, 3.14*radius*radius);
  14.  
  15.     getch();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment