I need to make a program that will accept max and min integers and print a square of lines of increasing numbers.
printSquare(3,6) needs to print:
3456
4563
5634
6345
Below is what I have so far and its current output:
public static void printSquare(int i, int j) {
int x = 3;
int y = 6;
for( i = x; i <= y; i++) {
for( j = i; j <= y; j++) {
System.out.print(j);
}
System.out.println();
}
Ouput:
3456
456
56
6
How can I use the mod function to complete this program?