How to make two integer input? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to make two integer input?

Like int x= Convert.ToInt32(Console.ReadLine()); int y= Convert.ToInt32(Console.ReadLine()); Console.WriteLine(x-y); }

24th Dec 2016, 8:56 AM
shivam acharya
shivam acharya - avatar
1 Answer
+ 2
Add a Thread.Sleep(5000) after the `int x= Convert.ToInt32(Console.ReadLine());` , and place it into the IDE, and it should work. Sololearn's compiler/IDE doesn't support multiple inputs.
24th Dec 2016, 9:01 AM
Wen Qin
Wen Qin - avatar