0

Hello, I started learning C # and just downloaded the application. Please tell me how to make a condition for user input?

In the description, the code that I wrote but it does not work, please correct the errors. string yourName; Console.WriteLine("what is your Name?"); yourName = Console.Readline() ; If yourName = ken; Console.Writeline("hallo {0}"; , yourName) ; else Consol.Writeline ("goodbye") ;

14th Jun 2020, 10:20 PM
RayDallince
RayDallince - avatar
1 Respuesta
+ 1
sempiternum here is your code remember to define your ReadLine(); string yourName = Console.ReadLine(); https://code.sololearn.com/cO48Sa4Q7gEc/?ref=app
14th Jun 2020, 11:09 PM
BroFar
BroFar - avatar