[Solved] Number based triangle using for loops [closed]


You could use 2 for loops, you just have to understand the problem correctly then you could convert it to code easily.

from my understanding you want to have n rows and in ith row you want to have multiple of i with every number less than or equal 2*i-1 so just use one for to print out the new line and in every row print out that multiples.

8

solved Number based triangle using for loops [closed]