+ 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 Odpowiedź
+ 3
Console.WriteLine
c# is case-sensitive.
Console -> C is capitalized
WriteLine -> W and L are capitalized
Consoleu.readline()); must be Console.ReadLine()