C Program to find the Area and Circumference of the Circle from the given radius.
#include<stdio.h> #define PI 3.14159265358979323846 int main(){ int radius = 10; // Change the radius float area,circumference; area = PI * radius * radius; circumference = 2 * PI * radius; printf("Given Radius : %d Area : %f Circumference : %f",radius,area,circumference); return 0; }
Given Radius : 10 Area : 314.159271 Circumference : 62.831852
Comments :