volc - printf"\n" for(r=1;r<=10;r t= VOL(r...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include<stdio.h> #include<math.h> #define VOL(r) r*r*r*4.0/3.0*M_PI int main() { float r, t; printf("Radius Volume\n");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: printf("------------------\n"); for(r=1;r<=10;r++){ t= VOL(r); printf("%3.0f %12.4f\n", r, t); } return 0; }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online