samedi 11 septembre 2021

i got an error in c# with if else statement , i want a solution [closed]

I didn't find any solutions to this problem, I tried else if and got the same problem, why?

using System;

namespace ConsoleApp4
{
    class Program
    {
        static void Main(string[] args)
        {
            if ("A" ==  "B") ;
            {
                Console.WriteLine("s");
            } //i got error in this line
            else
            {
                Console.WriteLine("f");
            }
        }
    }
}

Aucun commentaire:

Enregistrer un commentaire