Dido09

ТОТО 6/49

Nov 5th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Toto {
  4. public static void main(String[] args) {
  5. Scanner scanner = new Scanner(System.in);
  6.  
  7. for (int i1 = 1; i1 <= 44; i1++)
  8.  
  9. for (int i2 = i1 + 1; i2 <= 45; i2++)
  10.  
  11. for (int i3 = i2 + 1; i3 <= 46; i3++)
  12.  
  13. for (int i4 = i3 + 1; i4 <= 47; i4++)
  14.  
  15. for (int i5 = i4 + 1; i5 <= 48; i5++)
  16.  
  17. for (int i6 = i5 + 1; i6 <= 49; i6++)
  18.  
  19. System.out.printf("%d %d %d %d %d %d%n", i1, i2, i3, i4, i5, i6);
  20.  
  21. }
  22. }
Add Comment
Please, Sign In to add comment