Unformatted text preview: double v; //calculated volume double temp; //radius cubed for calculations /*Get the radius of sphere */ printf("Enter the radius of the sphere "); scanf("%lf", &rad); /*calculate volume from given radius*/ v = 4 / (3 * II * (rad*rad*rad)); /*display calculated volume*/ printf("The volume is %lf .\n", v); return (0); }...
View
Full
Document
This note was uploaded on 08/06/2008 for the course EGR 261 taught by Professor Parikh during the Spring '08 term at Grand Valley State.
 Spring '08
 Parikh

Click to edit the document details