0
why cant we use explicit type conversion
int age=int.parse(Console.ReadLine());
4 Réponses
0
You can use.
0
That code will work.
it's just that, parse must start with capital 'P'
it must be:
int.Parse()
Hope that solves it.
0
thanks
0
No Problem :))
You may also use:
Convert.ToInt32(Console.ReadLine());
If you like :))