static void Main(string[] args) { LevelUp s = new LevelUp(); int[] a = { 150, 450, 900, 1800 }; Console.WriteLine(s.toNextLevel(a, 612)); Console.ReadLine(); }