laith-0093

Untitled

Jan 16th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <iostream.h>
  2. #include <math.h>
  3. #include <conio.h>
  4. void main ()
  5. {
  6. int x, y, P ;
  7. cout << " Enter a number: " ;
  8. cin >> x ;
  9. cout << " Enter a power : " ;
  10. cin >> y ;
  11. P = pow (x,y) ;
  12. cout << " The result is : " << P << endl ;
  13. getch ();
  14. }
Advertisement
Add Comment
Please, Sign In to add comment