Challenge: Display a Right-Angle Triangle
Test your understanding by solving the challenge given in this lesson.
We'll cover the following
Problem statement
Your task is to display the following pattern on the screen:
& & & & & &
& & & & &
& & & &
& & &
& &
&
📝Note: Please print the output in this format; otherwise, your code will not pass the test case.
Coding exercise
Before diving directly into the solution, try to solve it yourself. Then check if your code passes all the test cases. If you get stuck, you can always see the given solution.
Good luck! 👍
Get hands-on with 1400+ tech skills courses.