Advertisement
Josif_tepe

Untitled

May 22nd, 2024
623
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int x, n;
  7.     cin >> x;
  8.     cin >> n;
  9.  
  10.     int proizvod = 1, i;
  11.     for(i = n; i > 0; i--)
  12.     {
  13.         proizvod *= x;
  14.     }
  15.     cout << proizvod << endl;
  16.  
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement