Practical no. 1

/* C Program to finding the surface area & valume fo cylinder */

#include<stdio.h>
#define PI 3.14
main()
     {
      float redius,height;
      float surface_area,valume;
      printf("\nenter the value of redius & height  :\t");
      scanf("%f %f",&redius,&height);
      surface_area=(2*PI*redius*redius)+(2*PI*redius*height);
      valume=(PI*redius*redius*height);
      printf(" \n Surface area=%f",surface_area);
      printf("\n valume=%f",valume);
     }

No comments:

Post a Comment