can I know the flowchart and pseudocode for this this coding...and can you add comment in the coding so I can know what the fucntion
#include <iostream>
using namespace std;
void Square(float radius,float &result);
void getradius (float & radius);
int main()
{
float radius,result;
cout<<"This program calculates the area of circle"<<endl;
getradius(radius);
Square(radius,result);
double area = 3.14159*result;
cout<<"The area is "<< area <<endl;
return 0;
}
void getradius (float & radius)
{
cout<<"Enter the radius of the circle"<<endl;
cin>>radius;
return;
}
void Square(float radius,float &result)
{
result=radius*radius;
cout<<"The square of "<<radius<<" is "<<result<<endl;
return;
}
can I know the flowchart and pseudocode for this this coding...and can you add comment in the coding so I can know what the fucntion
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images