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
Facebook Connect
Youtube
Share | .
 

 Compute The Area Of A Circle In C++

View previous topic View next topic Go down 
AuthorMessage
kulit™
Global Administrator
Global Administrator


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

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





#include
#include
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;
}

_________________


www.1pinoygsm.com
Back to top Go down
http://kulit.5u.com
 

Compute The Area Of A Circle In C++

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» SICKNESS / OMEI / NINTH CIRCLE MUSIC
» Goatee, Chin Mitten, Circle Beard... What's the difference?
» Lounge/Dining area
» AREa Melaka xda ker Spa yg Ada x-service
» Outdoor Sitting area

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