+ 1

Why is Console.ReadLine() not working in Code Playground?

I am new to coding and new to SoloLearn. I was trying to play with console app where I want to read data entered but to no avail. The write Line prints out but that's it. Here is my code: 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) { Console.WriteLine("Hello World"); string data = Console.ReadLine(); Console.WriteLine(data); } } }

20th Nov 2017, 4:05 PM
Martin Mbaliro Guga
Martin Mbaliro Guga - avatar
1 Réponse
- 1
Add a Console.ReadKey();
20th Nov 2017, 7:05 PM
WhiteWolf