|
|
back to boardWhat's wrong С# ?????? using System; namespace ConsoleApplication5 { class Program { static void Main(string[] args) { string[] A = Console.ReadLine().Split(' '); float a = int.Parse(A[0]); float b = int.Parse(A[1]); if (a <= b) Console.WriteLine(2); else Console.WriteLine("{0:#}",a/b*2); } } }
Re: What's wrong С# ?????? your formula is not correct, think of more cases Re: What's wrong С# ?????? 5 3 the answer is 4 Re: What's wrong С# ?????? ceil(a/b*2) |
|
|