Java
1 2 3 4 5 6 7 8 9 | public class Main { public static void main(String[] args) { for (int i=2; i<2+5; i++){ for (int j=i; j<i+5; j++) System.out.print(j + " "); System.out.print('\n'); } } } | cs |