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)); } } }
1 Answer
+ 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));
}
}
}