In: Computer Science
area = radius * radius * PI
volume = area * length
//Program:
#include<iostream>
using namespace std;
int main()
{
int radius, length;
float area, volume;
cout<<"Enter the radius:";
cin>>radius;
//reading the radius
cout<<"Enter the length:";
cin>>length;
//reading the length
area=radius*radius*3.14;
//calculating the area
volume=area*length;
//calculating the volume
cout<<"Area:"<<area<<endl;
//printing the area
cout<<"Volume:"<<volume;
//printing the volume
return 0;
}
//Output: