Untitled

mail@pastecode.io avatar
unknown
plain_text
22 days ago
355 B
1
Indexable
Never
Program to find area and circumference of the circle */
#include<stdio.h>
#include<conio.h>
void main() 
{
int r;
float area, cir;
clrscr();
printf("\n Enter the radius of Circle : ");
scanf("%d", &r);
area = 3.14 * r * r;
cir=2 * 3.14 * r;
printf("\n Area of Circle : %.2f", area);
printf("\n Circumference of Circle : %.2f", cir);
getch();
Leave a Comment