Area and Circumference of the circle(Area=PI*r*r and Circumference=2*PI*r)


SUBMITTED BY: Nrupeshsinh

DATE: June 21, 2016, 2:30 p.m.

FORMAT: Text only

SIZE: 220 Bytes

HITS: 2045

  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<<"Area="<<PI*r*r<<endl;
  11. cout<<"Circumference="<<2*PI*r;
  12. getch();
  13. }

comments powered by Disqus