+ 1

Why it write compilation error when I Run a Program?

I checked the errors but I didn't found them. so I don't know what that "compilation error" mean... anyone who can help please... https://code.sololearn.com/cJwcZWRc4zUh/?ref=app

30th Mar 2018, 1:36 AM
Lawrence Amo
Lawrence Amo - avatar
3 Answers
+ 1
Replace everything after variables with this Console.WriteLine("Enter your YearBirth"); YearBirth = Int32.Parse(Console.ReaLine()); Console.WriteLine("Enter the curent year"); CurentYear = Int32.Parse(Console.ReadLine()); NewAge = CurentYear - YearBirth; Console.WriteLine("Your Age is " +NewAge); Console.ReadKey();
30th Mar 2018, 1:41 AM
Ariela
Ariela - avatar
+ 1
You are missing a 'd' from your "ReadLine" calls and you are missing a semicolon after the newage calculation. There are more errors, but the error descriptions got better once those were fixed.
30th Mar 2018, 2:00 AM
Jesse Bayliss
Jesse Bayliss - avatar
0
I thank you. I'll improve. Thanks...
30th Mar 2018, 2:13 AM
Lawrence Amo
Lawrence Amo - avatar