Code is correct.
int Number;
Number = int.Parse(Console.ReadLine());
Following code will throws an error : cannot implicitly convert from 'int' to 'string
string Number;
Number = int.Parse(Console.ReadLine());
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241