I am brand new to coding so please excuse me. I'm just exploring the language myself right now but I'm wondering how I can use If and Else to give a specific answer to the user. For example if i wrote
Console.WriteLine("Hello! What country are you from?");
Console.ReadLine();
So what can i do if the user types Spain then it'll show him a message specific to spain, but if he types a question that is not spain, then he gets a different message. How would i do that?
Aucun commentaire:
Enregistrer un commentaire