Error cs0017 console doesnā€™t exist for readline and writeline, why I donā€™t know... | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 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