#include<stdio.h> #include<conio.h> void main() { int r; float pi=3.14,area,ci; clrscr(); printf("Enter the Radius of a Circle:"); scanf("%d",&r); area=pi*r*r; printf("Area of a Circle is: %f\n",area); ci=2*pi*r; printf("Circumference is: %f",ci); getch(); }
OUTPUT:
Enter the Radius of a Circle:10 Area of a Circle is: 314.000000 Circumference is: 62.800003