Advertisement
Josif_tepe

Untitled

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