Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Toto {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- for (int i1 = 1; i1 <= 44; i1++)
- for (int i2 = i1 + 1; i2 <= 45; i2++)
- for (int i3 = i2 + 1; i3 <= 46; i3++)
- for (int i4 = i3 + 1; i4 <= 47; i4++)
- for (int i5 = i4 + 1; i5 <= 48; i5++)
- for (int i6 = i5 + 1; i6 <= 49; i6++)
- System.out.printf("%d %d %d %d %d %d%n", i1, i2, i3, i4, i5, i6);
- }
- }
Add Comment
Please, Sign In to add comment