This type of exercises always pop up. One way to handle them is to write a method that takes two parameters: a char (the character to be printed) and an int (the number of times to print that...
Type: Posts; User: Junky
This type of exercises always pop up. One way to handle them is to write a method that takes two parameters: a char (the character to be printed) and an int (the number of times to print that...
On each line you need to print M number of spaces before you start printing the numbers. Surely you can see a pattern in how many spaces are needed.