Wednesday, 17 February 2021

CPP-2019-Slip14a

 

#include<iostream.h>

#include<conio.h>

 inline float dimeter(float r)

{

return(r /2);

}

inline float circlearea(float r)

{

return(3.14*r*r);

}

inline float circumference(float r)

{

return(3.14*2*r);

}

int main()

{

float radius;

clrscr();

 cout<<"\n\nEnter the radius of the circle:";

cin>>radius;

cout<<"\nDiameter of Circle:"<< dimeter(radius);

cout<<"\nArea of Circle:"<< circlearea (radius);

cout<<"\nCircumference of Circle:"<< circumference(radius);

getch();

return 0;

 }