Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97420

Why does my compiler say that there is a semicolin missing? [closed]

$
0
0

I am trying to run this code and it says that there are no problems in my IDE, but my compiler says "Error CS 1002: ; expected".

I can't find it?

using System;

namespace code
{

}
class Program
{
    static void Main(string[] args)
{
        Console.WriteLine("Ask me anything!");

            string userQuestion = Console.ReadLine();

                string areYouABot = "I am not!";

                    if (userQuestion = "Are you a bot?");
                    {
                        Console.WriteLine(areYouABot);


                    }


} 
}

Viewing all articles
Browse latest Browse all 97420

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>