4.2k views
3 votes
Write a method void Print(int LastNumber, int numbersPerLine) that receives two integers

lastnumber and numbersPerLine. The program should print all the numbers from 1 to lastnumber,

numbersperline each line. The last line should contain the remaining numbers.​

User Phaazon
by
3.4k points

1 Answer

5 votes

Answer:

Code is in the attached screenshot.

Step-by-step explanation:

Assumed it was written in Java based on your other question asked.

Write a method void Print(int LastNumber, int numbersPerLine) that receives two integers-example-1
User Victor Orlyk
by
3.9k points