|
From: Scott <fre...@ve...> - 2005-06-27 12:54:01
|
> (pow(2,8)+1)/2
Thanks, that worked...
Man, the difference a bracket can make here and there.. :)
Looking at that now of course makes some sense,
(well when you take into the differences between, maths, and CMaths)
Thanks.
Cheers,
Scott.
#include <stdio.h>
#include <math.h>
void main()
{
double test;
test=(pow(2,8)+1)/2; //figure 2 to the eighth power +1
printf("The number is %g.0 \n",test);
system("PAUSE");
return 0;
}
|