Math Operators with int value : Operators : Language Basics C# Source Code


Custom Search

C# Source Code » Language Basics » Operators »

 

Math Operators with int value








    
 

using System;

class Operators {
    static void Main() {
        int a, b, c, d, e;
        a = 14;
        b = 15;
        c = 20;
        d = a + b - c; //d=9
        c += d;     //c=29
        e = c + d;   //e=38
        e /= 2;     //e=19
        Console.WriteLine("{0}", e);
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Language Basics
» Operators