Simple console application to accept integer and check whether its equal to its assignment or not

 int a = 10;
            int b = 5;
            if (a > 90 && b == 5)
            {

                Console.WriteLine("Equal");
            }
            else
            {
                Console.WriteLine("Not Equal");
            }
            Console.ReadLine();

The out put should be false with the logical and because 90 is bigger than 10
ScreenShot showing no Equal.JPG

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s