j

Saturday, 7 November 2015

Write a program that take Radius and Height of cylinder and display area of Cylinder.....

#include<iostream.h>
#include<conio.h>
void main()
{
float a,pi;
int r,h;
cout<<"Enter radius of cylinder ::";
cin>>r;
cout<<"Enter height of cylinder ::";
cin>>h;
pi=3.142;
a=2*pi*r*(r+h);
cout<<a;
getch();
}


Subscribe to this Blog via Email :