* Write a Program and Algorithm to find the Area of circle. by using C++ Language.

Algorithm :

  1. Start
  2. Read the value of radius and Area.
  3. Enter the radius of circle.
  4. Calculation, Area=3.14*pow(r,2);
  5. Print the value of area of circle number "Area".
  6. Stop.

Program  :

#include<iostream.h>
#include<conio.h>
#include<math.h>
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

Division of two number:: 154


Thanks for visit this page and Support me. 
 

No comments:

Post a Comment

Pages