You are on page 1of 1

#include<stdio.

h>
int main()
{
float rds ,hgt;
printf("Enter radius of circle and height of cylinder respectively \n");
scanf("%f",&rds);
scanf("%f",&hgt);
printf("\nThe volume of cylinder having radius %f and height %f is %f
",rds,hgt,3.14*rds*rds*hgt);
return(0);
}

You might also like