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