You are on page 1of 1

#include<stdio.

h>
#include<conio.h>
void main()
{
int r;
float s=3.14,a,v;
Clrscr();
printf("enter radius of sphere\n");
scanf("%d",&r);
a=(4*s)*r*r;
v=(4/3)*s*r*r*r;
printf("area=%.2f \n volume=%.2f",a,v);
getch();
}

You might also like