Do calculation with int variable : int : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » int »

 

Do calculation with int variable








    
 

using System;
public class MainClass {
    static void Main(string[] args) {
        int a;
        a = -42;
        Console.WriteLine("{0}", a);

        int b = 2;
        int c = 42;
        a = b * -c;
        Console.WriteLine("{0}", a);
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» int