Thursday, 24 January 2013

program 2-10(57) calculate the circle area and circumference

#include <iostream>
#include <limits>

using namespace std;

int main()

{
    float red;


    cout << "to calculate the circumference and area of the circle enter redius";
    cin >> red;
    cout << "circumference of the circle is = ";
    cout << red*2*3.1416 << "\n";
    cout << "area of the circle is = ";
    cout << 3.1416*red*red;




    cin.ignore(numeric_limits<streamsize>::max(), '\n');
    cin.get();
    return 0;
}

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Enterprise Project Management