You are viewing a single comment's thread. Return to all 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?
Seems like cookies are disabled on this browser, please enable them to open this website
Plus Minus
You are viewing a single comment's thread. Return to all comments →
I'm still new at this but I almost did the same as you.
is this considered bad form compared to the Double.Parse?