View difference between Paste ID: qQqENmJ4 and Cyv8wPZ1
SHOW: | | - or go back to the newest paste.
1
public static int[] NewArray(int age)
2
        {
3
            int[] arr = new int[3];
4
            for (int i = 0; i < arr.Length; i++)
5
            {
6
                arr[i] = 0;
7
            }
8-
            if (age >= 12 && age < 16)
8+
            arr[0]++;
9
            if (!(age >= 12 && age < 16) || age >= 16 && age < 18)
10-
                arr[0]++;
10+
11
                arr[1]++;
12-
            else if (age >= 16 && age < 18)
12+
                if(!(age >= 16 && age < 18))
13
                  arr[2]++;
14
            }
15-
                arr[0]++;
15+
16
        }