volumec - int main float vol= volume(5 printf"The...

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

View Full Document Right Arrow Icon
Sheet1 Page 1 //volume.c #include <stdio.h> #include <math.h> float volume(float r){ float s s=(M_PI*r*r*r*(4.0/3)) return s
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } int main () { float vol= volume(5) printf("The volume of the sphere is equal to %f\n", vol) return 0 }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online