Computer Science, asked by mousakarad1234, 9 months ago

Q3) Write a Java program to do the following:-1-Write a method void Print(int LastNumber, int numbers per line) that receives two integers last number and numbers per line. The program should print all the numbers from 1 to the last number, numbers per line each line. The last line should contain the remaining numbers.Ex: if lastNumber=13and numbersPerLine=5 Ex:if lstNumber=21 and numbersPerLine=5Output should be:Output should be1 2 3 4 51 2 3 4 5 6 7 8 9 106 7 8 9 1011 12 1311 12 13 14 1516 17 18 19 20 21

Answers

Answered by katurimanivardhan
0

Answer:

hsfuwn eihw nwo9wvw lwufw wnkw

whfebwiex3owhwvekow evi59e e je uu h u vj u u u u

Similar questions