+ 3
Manav Roy
(2 / houses) * 100
Where houses is input.
and 2 is houses from where you get dollar bill
You want output in nearest whole number so use Math.ceil
0
Manav Roy
There would not be all toothbrush. There might be candy also but only from 2 houses you would get money. So (2 / 6) * 100
0
int houses=Convert.ToInt32(Console.ReadLine());
Console.WriteLine(Math.Ceiling(200.0/houses));