© PINOYGSM
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
Compute The Area Of A Circle In C++ HomeHomeCompute The Area Of A Circle In C++ I_icon_mini_faqLatest imagesRegisterLog 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
Like on Facebook
Time in Philippines
Who’s HACKER?
We’re Hiring toktok Driver

 

 Compute The Area Of A Circle In C++

Go down 
AuthorMessage
kulit™
Global Administrator
Global Administrator
kulit™


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

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

Compute The Area Of A Circle In C++ Area10



#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;
}
Back to top Go down
http://4lead.top8.com
 
Compute The Area Of A Circle In C++
Back to top 
Page 1 of 1
 Similar topics
-
» C Program Language (Area Of Circle, Triangle and Square)
» BULACAN AREA
» 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: