C program to find the Area and Circumference of a Circle.
#include<stdio.h>
#include<conio.h>
void main()
{ int radius;
Output 👆 |
float area,circumference;
clrscr();
printf("Enter the radius of Circle :");
scanf("%d",&radius);
area=3.14*radius*radius;
circumference=2*3.14*radius;
printf("Area of a circle =%f\n",area);
printf("Circumference of a circle =%f",circumference);
getch();
}
Comments
Post a Comment