Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Program to input radius and calculate area and circumference of circle.
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- float radius;
- clrscr();
- printf("Enter radius of the circle: ");
- scanf("%f", &radius);
- 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);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment