How would I use exponents in C++ (ie having a^2+b^2) = c^2
Anyone know? thanks.
Printable View
How would I use exponents in C++ (ie having a^2+b^2) = c^2
Anyone know? thanks.
math.h - pow(), sqrt() and other great math functions in there.
thanks
hey, does ^ mean 'to the power'?
>hey, does ^ mean 'to the power'?
In algebra it does. In C++, I'm sure you know how to use pow(). ;)
so 4^4 would be sixteen, am i correct
>so 4^4 would be sixteen, am i correct
4^2 is 16
4^4 is 256
oh ya..hehe...
i have always thought exponents are just a shortcut. and we all know where shortcuts get u lol.
just like in coding, you need to understand what is happening in the problem to be able to solve it.
so from now on, instead of 4^15'th power, make it 4*4*4*4*4*4*4*4*4*4*4*4*4*4*4, and check yourself to make sure ur correct.
lol if u follow my advice, you will go crazy in a matter of minutes!
{this post makes no sense} sry :>