Programming in C


Code:Find area of circle and volume of circle

#include<stdio.h> #Include<conio.h> void main()
{
float r,a,v;
clrscr();
printf(“Enter the radius : “);
scanf(“%f”,&r);
a=4*3.14*r*r; v=3.14*r*r*r*4/3;
printf(“\nArea of Circle is : %f”,a);
printf(“\nVolume of Circle is : %f”,v);
getch();
}


Leave a comment

Design a site like this with WordPress.com
Get started