Error cs0017 console doesn’t exist for readline and writeline, why I don’t know... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Error cs0017 console doesn’t exist for readline and writeline, why I don’t know...

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) { int age = Convert.ToInt32(Consoleu.readline()); Console.writeline("your age is {0} years old",age); } } }

18th Jan 2018, 10:50 PM
Katsia Kirito
Katsia Kirito - avatar
1 Answer
+ 3
Console.WriteLine c# is case-sensitive. Console -> C is capitalized WriteLine -> W and L are capitalized Consoleu.readline()); must be Console.ReadLine()
18th Jan 2018, 10:56 PM
sneeze
sneeze - avatar