Piszę program w c# który liczy średnia prędkość x razy i jak program pyta drugi raz o dane wejścia to wyskakuje błąd: Nieprawidłowy format ciągu wejściowego.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int a, b, ile, wynik;
ile = int.Parse(Console.ReadLine());
for (int i = 1; i <= ile; i++)
{
a = int.Parse(Console.ReadLine());
b = int.Parse(Console.ReadLine());
wynik = 2 * a * b / (a + b);
Console.WriteLine(wynik);
Console.ReadLine();
}
}
}
}