Whenever I execute the following program,
Code:
/*
* Problem 48.cpp
*/
#include <iostream.h>
#include <math.h>
int main()
{
double Power = 1;
double Sum = 0;
do {
Sum = pow(Power,Power);
cout<<Sum<<endl;
Power++;
}
while (Power <= 10);
return(0);
}
I get the following output in Terminal:
Code:
1
4
27
256
3125
46656
823543
1.67772e+07 // Right here, and below, where the "e+" is
3.8742e+08
1e+10
logout
[Process completed]
How do I disable that and have it output the actual number without scientific notation?
Using Mac OS X and Xcode 3.2
Thanks,
Anonymous