• Home
  • Variables and Constant Variable

Variables and Constant Variable

Agenda

What is Variables in C#?

What is Constant Variable in C#?

  
int a, b, c, d;
a = b = c = c = d = 500;
b = 600;
b = 700;


const double d1 = 34.67;
const int Months = 12, Weeks = 52, Days = 365;
Console.WriteLine(Months);
Console.WriteLine(Weeks);
Console.WriteLine(Days);

Console.WriteLine(d1);
//int a = 150, b = 250, c = 350;
Console.WriteLine(a);
Console.WriteLine(b);
Console.WriteLine(c);
Console.WriteLine(d);


int i = 30;


int I = 40;


int my_Var12 = 100; ;


Console.WriteLine(i);
Console.WriteLine(I);
int j = 30;


Console.WriteLine(j);


Console.WriteLine(my_Var12);

Console.ReadKey();