I've recently started to code in C#, so I'm just learning the basics right now. I've tried to search for this through Google and on this site, however, I couldn't find any solutions, but basically when I do Console.Read(), and take in an input and store it into an integer variable, the value I input is strangely different when it is outputted.
Here is the block of code I am trying to run:
Console.WriteLine("Welcome To The Program!");
Console.Write("Enter the radius of the sun: ");
input = Console.Read();
Console.WriteLine(input);
Console.ReadKey();
Input is a type of int and when I type in say 5, it will output 53. If I input 0, it will output 48.
Can anyone please explain why this may be happening? I know there is a way to parse input by first taking it as a string input and then parsing it as an integer, but that would take too long for larger pieces of code.