Which of the keywords mentioned below are used to construct​ the "if" statement:
Explanation
In general an if statement in C# can take two forms, as the following example shows.
 // if-else statement
if (condition)
{
    then-statement;
}
else
{
    else-statement;
}
// Next statement in the program.
 
 // if statement without an else
if (condition)
{
    then-statement;
}
// Next statement in the program.
 

@laor31692, thanks! is now better?

2017 Dec 15, 1:47:14 PM

Question is not clear. Ask about the form (representation) of 'if' statement, not what keywork could be used inside 'if' statement. Cause 'if' statement can contain any other inner expression as a method invokation.

2017 Dec 15, 9:30:22 AM

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты