* 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<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

Division of two number:: 154



Thanks for visit this page and Support me.

                            

No comments:

Post a Comment

Pages