simple calculator program

i have just learned the basics of c++ and i have written a simple calculator program which worked. but i would like someone to help me with a code that could make my calculator program carry out square roots or cube rotes of numbers!
Hay buddy
Umm well i carn't remember the to power of syntax i think it was
pow (7,3)

Which would be 7^3;
which is 7 to the power of 3
All need to do is

int a;
a=pow(7^3)


Hope that helps!!
Last edited on
http://www.cplusplus.com/reference/clibrary/cmath/pow.html

And in case you don't realize

251/2 = 5 (square root)

271/3 = 3 (cube root)

Topic archived. No new replies allowed.