Write a program using nested loops that asks the user to enter a value for the number of rows to display

I have to write a program that ask the user for input of an integer and displays rows like this, using loops:

Input: 6
*****?
****??
***???
**????
*?????
??????

I think I have the basic idea of how to do it: Output a line of the row, subtract 1 from the integer,, output the like again, and repeat until the integer is = 0.
My problem right now is that I have no idea on how to transform the integer, for example 7, to "******?"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  #include <iostream>

using namespace std;

int main()
{

	int rows;

	cout << "Please enter a number of rows to display: ";
		cin >> rows;
	cout << "\n";

	while (rows > 0)
	{
		for (i = 1; <= row )



	}



	return 0;

}


Thanks
Three loops:

The first (encompssing loop): i = 0 -> rows
The second (first inner loop loop): j = 0 -> rows - i - 1 -> cout '*'
The third (second inner loop loop): j = 0 -> i + 1 -> cout '?'

Done.
Thanks.
Using that i should also have the integers i and j, right?
Topic archived. No new replies allowed.