New course! Every coder should learn Generative AI!
Try a free lesson0
ReadLine...
guys In my code I have a few of "Console.ReadLine" .. why I can write just ones?
3 Answers
+ 1
string name;
//output question
Console.WriteLine("whats your name?");
//record user input
name = Console.ReadLine();
//output user name value.
Console.WriteLine("Hello {0}", name);
//to keep console app open instead of instantly
//closing
Console.ReadKey();
0
Console.WriteLine(...)
0
I have write line .. whats ur name
then string name = readline..
write line hi (name)
and then I put agein readline but I cant Input anything.. its in this app..