Advertisement
AvengersAssemble

Untitled

Jan 9th, 2014
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.             arr[0]++;
  9.             if (!(age >= 12 && age < 16) || age >= 16 && age < 18)
  10.             {
  11.                 arr[1]++;
  12.                 if(!(age >= 16 && age < 18))
  13.                   arr[2]++;
  14.             }
  15.             return arr;
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement