User input | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

User input

I’m not sure if I somehow skipped it, but how do you get user input for an integer? I’m pretty sure it only showed user input with strings.

30th Oct 2019, 7:40 PM
Jake
3 Answers
+ 2
hi Jake code... int x = Convert.ToInt32(Console.ReadLine()) the lesson on user input is here.. https://www.sololearn.com/learn/CSharp/2585/
30th Oct 2019, 7:48 PM
Ollie Q
Ollie Q - avatar
0
Thats what I did except i converted a string, Thanks!
30th Oct 2019, 8:12 PM
Jake
0
I actually remember seeing this lesson, but maybe i forgot...
30th Oct 2019, 8:24 PM
Jake