Calculate Area Of Circle From Radius
#include<stdio.h>
#include<conio.h>
void main()
{
float r,a;
clrscr();
printf("\nEnter Circle Radius(r):");
scanf("%f",&r);
a=(float)(r)*(r)*22/7;
printf("\nTotal Area OF Circle : %.2f",a);
getch();
}
From Basic to the Best
#include<stdio.h>
#include<conio.h>
void main()
{
float r,a;
clrscr();
printf("\nEnter Circle Radius(r):");
scanf("%f",&r);
a=(float)(r)*(r)*22/7;
printf("\nTotal Area OF Circle : %.2f",a);
getch();
}