* Write a Program and Algorithm to find the Area of circle. by using C Language.
Algorithm :
Program :
#include<stdio.h>
#include<conio.h>
Algorithm :
- Start
- Read the value of radius and Area.
- Enter the radius of circle.
- Calculation, Area=3.14*pow(r,2);
- Print the value of area of circle number "Area".
- Stop.
Program :
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int radius,Area;
clrscr();
printf( "Enter the radius of circle" );
scanf("%d",&radius);
Area=3.14*pow(r,2);
printf( " Area of circle :: ",Area);
getch();
}
output
Enter the radius of circle = 7
void main()
{
int radius,Area;
clrscr();
printf( "Enter the radius of circle" );
scanf("%d",&radius);
Area=3.14*pow(r,2);
printf( " Area of circle :: ",Area);
getch();
}
output
Enter the radius of circle = 7
Division of two number:: 154
Thanks for visit this page and Support me.
No comments:
Post a Comment