fork download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.  
  5. int r = 6 ;
  6. int height = 10 ;
  7. printf("The area of circle with radius %d is %f ",r, 3.14*r*r );
  8. printf("The volume of cylinder with radius %d and height %d is %f ",r,height, 3.14*r*r*height );
  9.  
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
The area of circle with radius 6 is 113.040000 The volume of cylinder with radius 6 and height 10 is 1130.400000