I'm new to c# so forgive me, but I'm just wanting to know why do I have to convert int to int32?
For example I declare lowerRange
as an int, but then later on when I am to read user input, I have to convert it to int32 otherwise it gives me an error saying I "cannot implicitly convert type 'string' to 'int'.
OR I'm assuming that I have to convert because the user is entering a string and I have to convert it to an int, which in that case makes me wonder why I have to declare lowerRange
as an int the first place?
int lowerRange;
...
lowerRange = Convert.ToInt32(Console.ReadLine());