Name - Anurag Kumar Tiwari Roll No - A2025CSE12289
PROGRAM 4
PROGRAM 3
WAP to calculate the area and circumference of a circle.
#include<stdio.h>;
#include<conio.h>;
#include<math.h>;
void main()
{
float r, A, C;
clrscr();
printf("Enter radius of circle: ");
scanf("%f", &r);
C = 2 * 3.14 * r;
A = 3.14 * r * r;
printf("Circumference of the circle: %f\n", C);
printf("Area of the circle: %f\n", A);
getch();
}
OUTPUT