#include
using namespace std;
int main()
{
float pi = 3.14, radius, height, CSA;
cout<<< “\n Curved Surface Area of a cylinder”;
cout<<“\n Enter Radius (in cm):”; cin >> radius;
cout<<“\n Enter Height (in cm):”; cin >> height;
CSA = (2*pi*radius)*height; system (“els”);
cout<<“\n Radius:” << radius « “cm”;
cout<<“\n Height:” << height« “cm”;
cout<<“\n Curved Surface Area of a Cylinder is” << CSA « “sq. cm.”;
}
Output:
Curved Surface Area of a cylinder
Enter Radius (in cm) : 7
Enter Height (in cm) : 20
Radius : 7cm
Height : 20cm
Curved Surface Area of a Cylinder is 879.2 sq. cm.