Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4
Console.Read(): Input terminates as use presses space or tab. It is better for single value input. Console.ReadLine(): It allows multiple word input including space, tab as the part of the input. input terminates as return key is press. Console.ReadKey(): Reads a single keystroke from the keyboard and terminates the input.
17th Mar 2017, 11:32 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar