Question: Write code which prints every number from 10 to 1 a number of times equal to the number itself (e.g. ten 10s, nine 9's...). Every
Write code which prints every number from 10 to 1 a number of times equal to the number itself (e.g. ten 10s, nine 9's...). Every individual number printed should be separated by a space, and there should be a new line each time the number changes. You should use nested loops to produce your output (it will result in far less code).
in JAVA
Partial sample run:
10 10 10 10 10 10 10 10 10 10 9 9 9 9 9 9 9 9 9 8 8 8 8 8 8 8 8 ........
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
