I try to make a multiplier. When I insert number 5, it magically turns to 53. When number 2, it will be 50. Can't see where I made a mistake.
public static void Main(string[] args)
{
Console.WriteLine("Enter the number: ");
int num = Console.Read();
Console.WriteLine();
int i;
for (i = 0; i <= 10; i++)
{
int result = num * i;
Console.WriteLine("{0}*{1}={2}", num, i, result);
}
}
int num = Console.Read();
toint num = Convert.ToInt32(Console.ReadLine());
Console.ReadLine
works correctly here: dotnetfiddle.net/UxbT5O.