+ 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); } } }
1 Respuesta
- 1
Add a
Console.ReadKey();