Java
1 2 3 4 5 6 7 8 9 10 11 | public class Main { public static void main (String[] arg) { int[] arr = new int[10]; for (int i=0; i < 10; i++) arr[i] = i+1; for (int i=0; i < 10; i++) System.out.print(arr[i] + " "); } } | cs |