How to write program for volume of cylinder:

CODE




How to write program for volume of cylinder:
int main()
{
    float v,r,h;
    printf("\n enter the radius and height of cylinder:");
    scanf("\n%f%f",&r,&h);
    v=3.14*r*r*h;
    printf("\n volume=%f",v);
}

Output:
Enter the radius and height of cylinder:
3
6
Volume=169.559998

How to write program for volume of cylinder: How to write program for volume of cylinder: Reviewed by Unknown on December 13, 2018 Rating: 5

No comments:

If you have any doubt or query ,comment below:

Programming copyright © 2018-19. Powered by Blogger.