Multiple user input | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Multiple user input

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { string yourName; Console.WriteLine("What is your name?"); Console.WriteLine("Please write your name..."); yourName = Console.ReadLine(); Console.WriteLine("Hello {0}", yourName); Console.WriteLine("Thank you anyway... :-)"); Console.WriteLine("Your age..."); Convert.ToInt32(Console.Read()); Console.WriteLine("Got it"); } } } in this code snippet how to get multiple input where this code is getting input for the first time not for the second time. Thanks in advance.

30th Dec 2016, 3:49 PM
Partha Sarathi Kundu
Partha Sarathi Kundu - avatar
2 Answers
+ 7
User must split his inputs with newlines (hit enter button)
30th Dec 2016, 3:53 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
it's not supported by sololearn do as valentinhacker said
30th Dec 2016, 5:05 PM
Sandeep Chatterjee