power of 2

can anybody help me with this

design an application that will compute and display
a table that will display 2 raised to the power of
range of values 0 through 50.
demostrate using pow function in math.h
Well, what do you have so far?

It's much easier for us to help you if you have some code that we can actually help you with.
yeah, you need to understand the math..

int a = 2;
int result;

for(i=0, i<50; i++)
result = a^i;
...
etc..
but you need to use math.h... easy

http://www.cplusplus.com/reference/cmath/pow/

read that and go from there. you obviously need a loop still
Topic archived. No new replies allowed.