AREA AND CIRCUMFERENCE OF A CIRCLE
CODING:
#include<stdio.h>
#include<conio.h>
void main()
{
float r,area,circumference;
clrscr();
printf("\n Enter the Radius:");
scanf("%f",&r);
area=3.14*r*r;
circumference=2*3.13*r;
printf("\n Area of the circle = %f",area);
printf("\n circumference of the circle =%f",circumference);
getch();
}
CODING:
#include<stdio.h>
#include<conio.h>
void main()
{
float r,area,circumference;
clrscr();
printf("\n Enter the Radius:");
scanf("%f",&r);
area=3.14*r*r;
circumference=2*3.13*r;
printf("\n Area of the circle = %f",area);
printf("\n circumference of the circle =%f",circumference);
getch();
}
No comments:
Post a Comment