Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream.h>
- #include <math.h>
- #include <conio.h>
- void main ()
- {
- int x, y, P ;
- cout << " Enter a number: " ;
- cin >> x ;
- cout << " Enter a power : " ;
- cin >> y ;
- P = pow (x,y) ;
- cout << " The result is : " << P << endl ;
- getch ();
- }
Advertisement
Add Comment
Please, Sign In to add comment