+ 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
3 Respostas
+ 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();
+ 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.
0
I thank you. I'll improve. Thanks...