This program take radius and height from user and calculate the area of cylinder.Program to calculate area of cylinder. Program to calculate area of cylinder in C++. You can compile and run this program in Dev C++ or Code Block.The Source code is given below.

#include<iostream> /*theteknek.com*/

using namespace std;

float PI=3.1415;

int main()

{

float r,h,a;

cout<<“Enter Radius of Cylinder “;

cin>>r;

cout<<“Enter Height of Cylinder “;

cin>>h;

a=2*PI*r*(h*r);

cout<<“Area of Cylinder is =”<<a;

return(0);

}

Output is given below.

This program take radius and height from user and calculate the area of cylinder.Program to calculate area of cylinder .Program to calculate area of cylinder in C++. You can compile and run this program in Dev C++ or Code Block.The Source code is given below.This program take radius and height from user and calculate the area of cylinder.Program to calculate area of cylinder .Program to calculate area of cylinder in C++. You can compile and run this program in Dev C++ or Code Block.The Source code is given below.#include<iostream>using namespace std;float PI=3.1415;int main(){float r,h,a;cout<<“Enter Radius of Cylinder “;cin>>r;cout<<“Enter Height of Cylinder “;cin>>h;a=2*PI*r*(h*r);cout<<“Area of Cylinder is =”<<a;return(0);}.include<stdio.h> #include<iostream> using namespace std; class Calculate //class form { int r,h ; public: void getdata() //input data . So im writing a program, using functions, that will solve total surface area, lateral surface area and volume of a cylinder given Radius(r). C++ program to calculate area and circumference of a circle. To calculate area and circumference of any circle in C++ Programming, you have to ask to the user. Create a base class round-shape(radius). define three different shapes as circle, sphere and cylinder(height) from round-shape. class round. This C Program calculates volume and surface area of cylinder. The formula used in this program Surface_area = 2 * Pi * r * (r + h), Volume = Pi. Enter the values of the radius and the height of the cylinder in same unit: 7 7. The volume of the cylinder is: 1077 cubic unit.