Question: Write a method named printColumns that accepts two parameters: the number of columns and the number of spaces which separate each column. Your method should
Write a method named printColumns that accepts two parameters: the number of columns and the number of spaces which separate each column. Your method should print the column numbers starting at 1, with each column number separated by the given number of spaces. For example, the call printColumns(8, 5) should produce EXACTLY, the following output: C-1 C-2 C-3 C-4 C-5 C-6 C-7 C-8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
