Witam. Właśnie zacząłem naukę c#. I już na wstępie pojawia się problem. Otóż program:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication21
{
class Program
{
static void Main(string[] args)
{
int input = 0;
input = Console.Read();
Console.WriteLine(input);
}
}
}
daje nieprawidłowe dane wyjściowe. Nieważe czy wpiszę np. 345,234 czy coś cokolwiek innego na wyjsciu jest wyświetlane zawsze 51, 50 lub 49. Nie wiem o co może chodzić. Co robię nie tak. Bardzi proszę o wskazówki .
Z góry dziekuję.