Back
Close

C# != Operator

amiedd
1,465 views

!= Operators C# Reference

No need to download anything, this code works in your browser

AmieDD www.amiedd.com Code, Cosplay, and Games

Operators C# Reference !=

using System;
class InequalityTest
{
static void Main()
{
// Numeric inequality:
Console.WriteLine((2 + 2) != 4);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

About C# != Operators

The inequality operator (!=) returns false if its operands are equal, true otherwise. Inequality operators are predefined for all types, including string and object. User-defined types can overload the != operator.

Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants