C# language syntax and statement
This article will show and explain you the C# language syntax and statement.
1). Declaring a variable
int a;
int age,salary;
int num=8;
string name;
string fullname=”amar”;
2). Loop
int i=0;
While(i5)
{
Console.WriteLine(i);
++i;
}
Output:--
0
1
2
3
4
3). For Loop
int i=0;
for(int i=0;i5;i++)
{
Console.WriteLine(i);