Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
2.5k views
in Introduction to C++ by (49.1k points)
closed by

Write the C++ program to find the curved surface area of the cylinder.

C++ Program to find the Curved Surface Area of a cylinder (CSA) (CSA = 2 nr * h)

1 Answer

+1 vote
by (54.8k points)
selected by
 
Best answer

#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.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

...