Question: Write a method which prints a triangle of size n as shown below. If n = 6, it should print: 11 16 21 26 31

Write a method which prints a triangle of size n as shown below. If n = 6, it should print: 11 16 21 26 31 36 9 13 17 21 25 7 10 13 16 5 7 9 3 4 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
