a guest Oct 17th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- using System;
- namespace constants
- class Program
- static void Main(string args)
- int a = 10;
- //The variable b is a constant and can't be changed after being assigned.
- const int b = 15;
- a = 5;
- //If we try this we will get an exception.
- //b = 10;
- Console.WriteLine("a: " + a + " b:" + b);
RAW Paste Data