C++ Program – Accept Radius & Produce Area

by Nideesh C on May 1, 2011 · 0 comments

in C++




/* program to accept radius and produce area */

 #include<iostream.h>
 #include<conio.h>
 void main()
 {
 clrscr();
 float r,ar;
 cout<<"Enter radius"<<endl;
 cin>>r;
 ar =(22/7)*r*r;
 cout<<"Area = "<<ar;
 getch();
 }  



Not Satisfied ? Just search & get the result

Related Posts Plugin for WordPress, Blogger...
Be Sociable, Share!

Related posts:

  1. C program to find the area of a circle, given the radius
  2. C Program to calculate area and circumference of the circle
  3. C++ Program – Area of trangle
  4. C program to accept a figure code and find the ares of different geometrical figures such as circle, square, rectangle etc using switch
  5. C Program – Implement the midpoint circle drawing algorithm

Leave a Comment

Previous post:

Next post: