Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void numberSquare(int min, int max){
- for(int lines = min; lines <= max; lines ++){
- System.out.println();
- for(int num = min; num <= max; num++){
- if(num + lines > max){
- System.out.print(num);
- }
- else {System.out.print(num + lines);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement