Volume and Circumference of the Sphere(volume=4/3*PI*r*r and Circumference=4*PI*r*r)


SUBMITTED BY: Nrupeshsinh

DATE: June 22, 2016, 11:41 a.m.

FORMAT: Text only

SIZE: 224 Bytes

HITS: 2031

  1. # include<iostream.h>
  2. # include<conio.h>
  3. float PI=3.14;
  4. void main()
  5. {
  6. int r;
  7. clrscr();
  8. cout<<"Enter the Value of r=";
  9. cin>>r;
  10. cout<<"Volume="<<4/3*PI*r*r<<endl;
  11. cout<<"Circumference="<<4*PI*r*r;
  12. getch();
  13. }

comments powered by Disqus