Advertisement
Josif_tepe

Untitled

May 22nd, 2024
676
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 i, proizvod = 1;
  11.     for(i = 1; i <= n; i += 1)
  12.     {
  13.         proizvod *= x;
  14.     }
  15.     cout << proizvod << endl;
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement