+ 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); } } }
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()