/* 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);
}
Practical no. 1
Practical
C program to know the ASCII value of any character.
#include<stdio.h>
main()
{
char ch;
printf("\n Enter character :");
scanf("%c",&ch);
printf("\n The ascii value is=%d",ch);
}
Subscribe to:
Posts (Atom)