C# Operators (Arithmetic)

 Operators are used to perform operations on variables and values.


Arithmetic Operators

+     Addition                Adds together two values                    a+b

-      Substraction         Substracts one value from another        a-b

*      Multiplication        Multiplies two values                            a*b

/      Division                Divides one value by another                a/b

%    Modulus                Returns the division number                 a%b

++  Increment            Increases the value of variable by 1      a++

--   Decrement            Decreases the value of variable by 1      a--





Comments

Popular posts from this blog

Kotlin Math Operations and Functions Overview

Kotlin Strings: Features and Operations Guide

Kotlin Android Program (QCR) Application Codes That Read Text in Photos