2. C# Operators

 1.     Commonly used arithmetic operators
int n1=5, n2=2;
SUM=n1+n2;
DIFF=n1-n2;
PRODUCT=n1*n2;
QUOTIENT=n1/n2;
REMAINDER=n1%n2;

2.     Relational Operators
==Equal to (the same as)
!=Not equal to (not the same as)
> Greater than (more, bigger, larger, higher, longer than, exceeds, over
< Less than (smaller, fewer, lower, shorter than, below)
>=Greater than or equal to (at least)
<=Less than or equal to (at most)

3.     Logical Operators
                                                                        PRIORITY
       ! (NOT)           Negation                               1             
       && (AND) Logical Multiplication               2
       || (OR)Logical Addition                               3

1 comment: