You are on page 1of 1

#include<iostream>

using namespace std;

int main()

float r, h, area;

cout<<"Please enter the height: ";

cin>>h;

cout<<"Please enter the radius: ";

cin>>r;

area = (( 2 * 3.14 * r * h ) + ( 2 * 3.14 * r * r ));

printf("\n\n Surface Area of the Cylinder is : %f", area);

return (0);

You might also like