I have problem with method in Java
hi, any one can plz help me slove the give logic by java.
Write a method/flowchart or step-by-step procedure to print the following sequence of numbers.
Method should accept two parameters.
First parameter is first number to display, second parameter should be number of rows to be printed.
Any programming language is fine.
Output should be:
28 29 30 31
56 57 58 59 60 61 62 63
Note: Please don't simply write things like 'print 7', 'goto next line', 'print 14', 'print space', 'print 15', etc.
THIS SEQUENCE HAS A LOGIC AND YOUR ANSWER SHOULD EXPLAIN THE LOGIC AS WELL.
Re: I have problem with method in Java
What have you tried? - Matt Gemmell
Post your best attempt. Nobody will do it for you.