Code not work ( C# ) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Code not work ( C# )

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Secretscore() { Console.WriteLine ("and his exam score actually is 60 :P"); } static void Main(string[] args) { string name; string age; name = Console.ReadLine(); age = Console.ReadLine(); Console.WriteLine ("hello {0}",name); Console.WriteLine (" {0} age is {1}",name,age); Secretscore (); int jokowi = 100; int prabowo = 50; if (jokowi>prabowo); { Console.WriteLine ("JOKOWI WIN"); } else { Console.WriteLine ("PRABOWO WIN"); } } } }

17th Oct 2019, 11:59 AM
RezaKoplak406
RezaKoplak406 - avatar
1 Answer
+ 3
Delete semicolon in line 30 (after if)
17th Oct 2019, 12:45 PM
id001x
id001x - avatar