0

What is a WRONG? Halloween candy

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { double houses; houses = Convert.ToDouble(Console.ReadLine()); Console.WriteLine(Math.Round(2*100/houses)); } } }

28th Mar 2020, 4:33 PM
Husniddin Berdiyew
Husniddin Berdiyew - avatar
1 Respuesta
+ 1
try this: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { double houses; houses = Convert.ToDouble(Console.ReadLine()); Console.WriteLine(Math.Ceiling(2*100/houses)); } } }
28th Mar 2020, 9:45 PM
Jakub Havlicek
Jakub Havlicek - avatar