While "Console.ReadLine" command needs input, my program doesn't requires any. How to insert my input then? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

While "Console.ReadLine" command needs input, my program doesn't requires any. How to insert my input then?

22nd Sep 2020, 10:33 AM
Ali Barmaki
Ali Barmaki - avatar
2 Answers
+ 5
I don't know why, but Console.ReadLine() works while Console.ReadLine () doesn't. The difference is the space between parentheses and the name.
22nd Sep 2020, 10:39 AM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 2
The code was executed without any problems🤔, note that SoloLearn requests variables before execution!! I recommend running your program in visual studio
22nd Sep 2020, 11:26 AM
hossein B
hossein B - avatar