Pattern problem in java.

Need to display right angle triangle format with decreasing term based on the input.




Input
5

output:
            1
         2 2
      3 3 3
   4 4 4 4
5 5 5 5 5

Comments

Popular posts from this blog

Reasoning-Number Series

Reasoning-Letter Series

Profit and Loss