Question: Which comparison operator should you place between x and y in the if statement below to determine if the two variables are not equal? int

Which comparison operator should you place between x and y in the if statement below to determine if the two variables are not equal?
int x =0, y =0;
if(x ____ y){
Console.WriteLine("X and Y are not equal");
}else{
Console.WriteLine("X and Y are equal");
}
Group of answer choices
==
>
!=
<>
=
<

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!