|
|
вернуться в форумWhy do I get Runtime error C# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Problem_1001 { class Program { static void Main(string[] args) { ulong[] input = new ulong[4]; for (int i = 0; i < input.Length; i++) { input[i] = ulong.Parse(Console.ReadLine()); } for (int i = input.Length - 1; i >= 0; i--) {
Console.WriteLine(String.Format("{0:F4}",Math.Sqrt(input[i]))); } //Console.ReadLine(); } } } Re: Why do I get Runtime error C# You think there are exactly 4 numbers in the input. Also you think there is 1 number per line. Please show task fragment describing input format as you think. Edited by author 16.06.2016 21:02 |
|
|