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
Who’s HACKER?

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 : 32
Cell Phone # : 09273560700
Posts : 367

PostSubject: Compute The Area Of A Circle In C++   August 20th 2012, 14: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
-
» Non-fusion area and Super polymerization
» The Perfect Circle
» Circle making attachment by Calico Chris
» Hood hinge area rust issues
» SB in circle backstamp on studio plate/dish

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