Advertisement
Hugo_souhoka

square

Sep 25th, 2020
993
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <math.h>
  4. using namespace std;
  5. int main () {
  6.      int
  7.      x,y,z;
  8.  
  9.     cout<<"X = ";
  10.         cin>>x;
  11.        
  12.     cout<<"Y = ";
  13.         cin>>y;
  14.        
  15.     z = pow(x,y);
  16.    
  17.     cout<<"Result= "<<z<<endl;
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement