# Exercise 7
Create a loop to print following triangle made up of asterisks *.
* *
** **
*** ***
**** ****
***** *****
****** ******
******* *******
******** ********
********* *********
********************
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
# Hint
To solve this problem, you will need three loops nested inside a loop.
for (int i = 0; i < 10; i++)
{
for (/* Write code */)
{
// Write code
}
for (int j = 18 - i * 2; j > 0; j--)
{
Console.Write(" ");
}
for (int j = 0; j <= i; j++)
{
// Write code
}
// Write code
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
← Exercise 6 Exercise 8 →