• + 0 comments

    I'm still new at this but I almost did the same as you.

    	    int n = Convert.ToInt32(Console.ReadLine());
                string[] arr_temp = Console.ReadLine().Split(' ');
                int[] arr = Array.ConvertAll(arr_temp, Int32.Parse);
    
                Console.WriteLine((double)arr.Count(p => p > 0)/n);
                Console.WriteLine((double)arr.Count(p => p < 0)/n);
                Console.WriteLine((double)arr.Count(p => p == 0)/n);
    

    is this considered bad form compared to the Double.Parse?