HomeRegisterLog in
This is the FIRST PINOY GSM forum in the Philippines. The Number "One PinoyGSM dot com" PINOY, Global System for Mobile communication (GSM) is a globally accepted standard for digital cellular communication. and security tools for the computer systems and networks. ^^^ PinoyGSM is the name of a standardization group. ^^^ Be One Of Us! PINOYGSM Forum. ^^^ We Are Hackers Who Would Go Beyond Technology ^^^
Google Maps
Phil. Time
Like on Facebook

Share | 

 Compute The Area Of A Circle In C++

Go down 
Global Administrator
Global Administrator

Join Date : 2008-04-25
Location : Malabon City
Male Age : 33
Cell Phone # : 09273560700
Posts : 367

PostSubject: Compute The Area Of A Circle In C++   August 20th 2012, 14:39

using namespace std;

int main()

double area = 0;

double pi = 3.14159f; // the value of pi
double radius = 0;

// read the radius input from the keyboard
cout << "Enter a radius of a circle: ";
cin >> radius;

area = pi * (radius * radius);

// setprecision() function includes in iomanip
// set how many decimal places should appear after the decimal point
// format: fixed, scientific
cout << setprecision(2) << fixed;

cout << "The area of a circle is: " << area;

return 0;


Back to top Go down
Compute The Area Of A Circle In C++
Back to top 
Page 1 of 1
 Similar topics
» Circle making attachment by Calico Chris
» Hood hinge area rust issues
» Does Any One Live In A Wooded Area
» Flight circle Disneyland
» Program to determine area,perimeter of geometric shapes using coordinates

Permissions in this forum:You cannot reply to topics in this forum
© PINOYGSM :: Programming-
Jump to: