+ 3

SOLVED !!! Halloween candy c#

Why 3 lest test did not accept class Program { static void Main(string[] args) { int houses; houses = Convert.ToInt32(Console.ReadLine()); //your code goes here Console.Write(Math.Round(200.0/houses, MidpointRounding.AwayFromZero)); } } }

29th Aug 2021, 7:39 PM
Katerina UA
Katerina UA - avatar
2 Answers
+ 1
There are only 2 houses that gives dollar bill instead of 200.
29th Aug 2021, 7:53 PM
Abhay
Abhay - avatar
+ 1
Five starts - thanks a lot! Your func has worked!
30th Aug 2021, 12:27 PM
Katerina UA
Katerina UA - avatar