Plus Minus

  • + 0 comments

    foreach(int number in arr) { if (number>0) {
    positives+=1; } else if (number<0) { negatives+=1; } else { zeros+=1; }
    } System.Console.WriteLine("{(negatives/arr.Count):F6}"); System.Console.WriteLine($"{(zeros/arr.Count):F6}");