+ 1
Can someone Tell me what did I do wrong here
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 Health = 100; if (Health >= 50); Console.WriteLine("Cant Drink Health potion"); } else if (Health < 50); { Console.WriteLine("Health has been restored"); } } }
3 Answers
+ 3
One does not use semicolons after using an if statement.
+ 3
Sw'S AMV try this one.
https://code.sololearn.com/c7dYVpSBJZsg/?ref=app
0
thank you but there is still many errors i don't know where did I go wrong?