+ 1
How do i write x ?
Yeah i don't know how to use Console.Write to set x variable https://code.sololearn.com/cF6ZKaexz0YO/?ref=app
3 odpowiedzi
+ 2
You need set x with Console.ReadLine
https://code.sololearn.com/cxu0ucbgz3Rv/?ref=app
+ 1
sneeze what int.parse used for?
+ 1
Console.Readline returns a string . To be able to work with integers you need to convert the result of console.readline to a integer type.
You can do that with int.parse
Int stands for integer
And parse stands for from one to another.