C# IF Statement :
Syntax :
if(condition)
{
//code to be executed
}
Prog : Write a program to test whether a number is even or not
C# IF-ELSE Statement :
Syntax :
if(Condition)
{
// code to be executed
}else
{
//Code if condition is false
}
Prog : Write a program to test whether a number is even or not
C# IF - ELSE - IF LADDER Statement :
Syntax :
if(Condition1)
{
//code to be executed
}else if (Condition2)
{
//code to be executed
}
else
{
//Code when all the condition are false
}
Program : Write a program to print Grade of Student as per Marks.
Syntax :
if(condition)
{
//code to be executed
}
Prog : Write a program to test whether a number is even or not
C# IF-ELSE Statement :
Syntax :
if(Condition)
{
// code to be executed
}else
{
//Code if condition is false
}
Prog : Write a program to test whether a number is even or not
C# IF - ELSE - IF LADDER Statement :
Syntax :
if(Condition1)
{
//code to be executed
}else if (Condition2)
{
//code to be executed
}
else
{
//Code when all the condition are false
}
Program : Write a program to print Grade of Student as per Marks.
0 Comments:
Post a Comment