+ 1

What is wrong with my code?

static void Main(string[] args) { int pass=100; if (pass>=50) { Console.Writeline("you pass"); if (pass==100) { Console.WriteLine("perfect"); } } else { Console.WriteLine("fail"); } } } }

21st Jun 2018, 5:08 AM
Captain Fach
Captain Fach - avatar
2 Answers
0
those are for the rest of the code. here's the full 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 pass=100; if (pass>=50) { Console.Writeline("you pass"); } if (pass==100) { Console.WriteLine("perfect"); } else { Console.WriteLine("fail"); } } } }
21st Jun 2018, 6:06 AM
Captain Fach
Captain Fach - avatar