# Exercise 8

Create a loop to print following triangle.

0
10
210
3210
43210
543210
6543210
76543210
876543210
9876543210
1
2
3
4
5
6
7
8
9
10

# Hint

for (int i = 0; /* write code */)
{
  for (int j = i; /* write code */)
  {
    // Write code
  }
  // Write code
}
1
2
3
4
5
6
7
8
Last Updated: Apr 22, 2020, 1:39 PM