C program to calculate volume of a cylinder
void main()
{
float ans;
const float pi=3.14159;
clrscr();
printf("The radius of cylinder is 5.75cm.");
printf("\n\n\nThe height of cylinder is 15cm.");
ans=(pi*(5.75*5.75)*15);
printf("\n\n\nThe volume of cylinder is= %f",ans);
getch();
}