CodeUp - CodeUp Level 1

Ask your question

To send us your message, you need to log in first.

Question from the instructor or inquiry

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:

Copy
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:

Copy
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