Shape : Circle
Formula : Π * r * r | Definition :
|
Program :
#include#include void main() { float radius,area; clrscr(); // Clear Screen printf("Enter the radius of Circle : "); scanf("%d",&radius); area = 3.14 * radius * radius; printf("Area of Circle : %f",area); getch(); }
Output :
Enter the radius of Circle : 2.0 Area of Circle : 6.14
No comments:
Post a Comment