I am new to c# coding and am trying to write a little calculator type program that takes the numbers the user inputs and calculates them. What I have right now:
int a;
Console.WriteLine(" First Number? ");
a = Console.ReadLine();
int b;
Console.WriteLine(" Second Number? ");
b = Console.ReadLine();
int sum = a + b;
Console.WriteLine("Answer: " + sum);
Console.ReadLine();
Console.Readline() only works with strings and not integers, and I can't find what I can use instead. Can someone recommend something instead and general improvements on the code? Thanks.