|
From: P.D. v. Z. <pa...@my...> - 2003-09-05 20:10:32
|
#include <iostream>
#include <cmath>
int main()
{
using std::cout;
using std::endl;
double res = pow(2, 20);
cout << "2 to the 20th power is: " << res << endl;
return 0;
}
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Eric
Churches
Sent: Friday, September 05, 2003 9:08 PM
To: dev...@li...
Subject: [Dev-C++] the Power of
How do you work out 2 to the power of 20?
To get 1,048,756
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|