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") ;
1 Réponse
+ 1
sempiternum here is your code remember to define your ReadLine();
string yourName = Console.ReadLine();
https://code.sololearn.com/cO48Sa4Q7gEc/?ref=app