Guest User

Untitled

a guest
Jan 22nd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. int a, i;
  7. cin >> a >> i;
  8. for (int j = 0; j <= i; ++j) {
  9. cout << pow(a, j) << endl;
  10. }
  11. }
Add Comment
Please, Sign In to add comment