C Program To Implement Find The Area And Perimeter of an Circle In C...
  This c program makes a contrasting concept that how a return statement can return more than one value.

Area and perimeter help us measure the size of 2D shapes. We’ll start with the area and perimeter of rectangles. From there, we’ll tackle trickier shapes, such as triangles and circles.




ALGORITHM:-

step 1 : start
step 2 : Enter the Radius of the Circle
step 3 : Calculate the area using (3.14 * radius * radius)
step 4 : Calculate the Perimeter using (2 * 3.14 * radius)
step 5 : Print the Area and Perimeter
step 6 : Stop Execution




PROGRAM CODE:-

#include<stdio.h>
#include<conio.h>
int areaperi ( int r, float a, float p ) 
{
     a = 3.14 * r * r ; 
     p = 2 * 3.14 * r ;
     return (0);
}
int main( ) 
{ 
     int radius ; 
     float area, perimeter ; 
     printf ( "\nEnter radius of a circle " ) ;
     scanf ( "%d", &radius ) ;

     areaperi ( radius, area, perimeter ) ;

     printf ( "Area = %f", area ) ;
     printf ( "\nPerimeter = %f", perimeter ) ;
     getch();
}


OUTPUT:-

Enter the Radius of the Circle: 10

Area = 314
Perimeter = 62.80


C Program To Calculate the Area and Perimeter of an Circle
How to Find the Area of an Circle
Area of Circle