+ 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

25th May 2019, 2:32 PM
Dharma Fattahul Winzi
3 Respuestas
+ 2
You need set x with Console.ReadLine https://code.sololearn.com/cxu0ucbgz3Rv/?ref=app
25th May 2019, 3:32 PM
sneeze
sneeze - avatar
+ 1
sneeze what int.parse used for?
27th May 2019, 10:14 AM
Dharma Fattahul Winzi
+ 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.
27th May 2019, 3:13 PM
sneeze
sneeze - avatar