PROBLEM LINK:
Author: Vidya Kale
Tester: Vidya Kale
Editorialist: Vidya Kale
DIFFICULTY:
CAKEWALK.
PREREQUISITES:
None.
PROBLEM:
Meena have container whose shape is cylindrical. She knows the Radius and height of that container . But she want to find out the volume of container . i.e. write a program to find out the volume of cylinder. Given : Take value of piepie is 3.14.
QUICK EXPLANATION:
The height and radius of cylinder is given . Find out the volume of cylindrical container.
EXPLANATION:
The height and radius of cylinder is given as input . Find out the volume of cylindrical container .
SOLUTIONS:
Setter's Solution
#include <iostream>
using namespace std;
int main()
{
float r,h,V;
cin>>r>>h;
V=3.14*r*r*h;
cout<<V;
return 0;
}
Tester's Solution
#include <iostream>
using namespace std;
int main()
{
float r,h,V;
cin>>r>>h;
V=3.14*r*r*h;
cout<<V;
return 0;
}
Editorialist's Solution
#include <iostream>
using namespace std;
int main()
{
float r,h,V;
cin>>r>>h;
V=3.14*r*r*h;
cout<<V;
return 0;
}