-1
What is the purpose of the !=
in C# and how can I use it properly? I visualized an example in a repeat structure with for
, however I did not understand very well the function of it.
int soma = 0;
for (int i = 1; i <= 100; i++)
{
if (i % 3 != 0)
{
soma += i;
}
}
!=
would be: not equal to, different from, etc ... basically the opposite of==
– rbz
It is the binary inequality operator. Suggested: https://msdn.microsoft.com/en-us/library/czs2584d.aspx
– Rovann Linhalis