Write Simple C Program to Find Area and Circumference of a circle C language. the user to input the radius of a circle and outputs the area and circumference of the circle.
#include<stdio.h> #include<conio.h> void main() { int r; float pi=3.14,area,cir; clrscr(); printf("\nEnter the Radius of a Circle:"); scanf("%d",&r); area=pi*r*r; printf("\nArea of a Circle is: %f\n",area); cir=2*pi*r; printf("\nCircumference is: %f",cir); getch(); }