Click here to Skip to main content
15,883,803 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello everyone,
I'm trying to write a program that takes one number to the power of the other. Since c doesn't have a ^ command I am wondering how I can get this to work any help is appreciated thanks.
Posted
Comments

1 solution

xy:
C++
double result = pow(x, y);


http://www.cplusplus.com/reference/cmath/pow/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900