Right Angle Triangle
Write a program that draws a right-angled triangle. Use the +
sign to draw the triangle. The desired output should be as follows:
1+ 2+++ 3+++++ 4+++++++ 5+++++++++
Type the program code on the next page and then run it. If the output result of your code is correct, submit it to earn the points for this exercise.
Solution Video
First, try to solve the question yourself; if you can't, watch the solution video:Time of submission | File type | Status | View/Download |
---|
Right Angle Triangle
Write a program that draws a right-angled triangle. Use the +
sign to draw the triangle. The desired output should be as follows:
1+ 2+++ 3+++++ 4+++++++ 5+++++++++
Type the program code on the next page and then run it. If the output result of your code is correct, submit it to earn the points for this exercise.
Solution Video
First, try to solve the question yourself; if you can't, watch the solution video:Show descriptions
Show Editor