All pastes #538182 Raw Edit

Mine

public text v1 · immutable
·published 2007-06-04 23:32 UTC
rendered paste body
#include<stdio.h>
#include<stdlib.h>
#include<math.h>

int main(void){
   int r;
   const double pi = 3.141592654;
   double area,volume;
   printf("Enter the radius of a sphere: ");
   scanf(" %d", &r);
   area=4*pi*pow(r, 2);
   volume=(4.0/3.0)*pi*pow(r, 3);
   printf("The surface area of the sphere is %f,", area," ");
   printf("and the volume is %f.", volume);
   return 0;
}