Print numbers 0, 1, 2, ..., userNum as shown, with each number indented by that number of spaces. For each printed line, print the
leading spaces, then the number, and then a newline. Hint: Use i and j as loop variables (initialize i and j explicitly). Note: Avoid any
other spaces like spaces after the printed number. Ex: userNum = 3 prints.
0
1
2
3
Learn how our autograder works
543702 2989808.qx3zqy7
1 #include <iostream>
2 using namespace std;
3
4 int main() {
5 int userNum;
6 int i;
7 int j;
8
9 cin >> userNum;
10
11 /* Your solution goes here */
12
13 return 0;
14 }