j

Saturday, 7 November 2015

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

#include<stdio.h>
#include<conio.h>
void main()
{
float a,pi;
int r,h;
printf("Enter radius of cylinder ::");
scanf("%d",&r);
printf("Enter height of cylinder ::");
scanf("%d",&h);
pi=3.142;
a=2*pi*r*(r+h);
scanf(" Area of cylinder is ",a);
getch();
}


Subscribe to this Blog via Email :