* Write a Program and Algorithm to find the Area of circle. by using C++ Language.
Algorithm :
Program :
#include<iostream.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<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
int radius,Area;
clrscr();
cout<<"Enter the radius of circle";
void main()
{
int radius,Area;
clrscr();
cout<<"Enter the radius of circle";
cin>>r;
Area=3.14*pow(r,2);
cout<< " Area of circle"<<Area;
getch();
}
output
Enter the radius of Circle = 7
Area=3.14*pow(r,2);
cout<< " 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