Respuesta :

Answer:

IF-Then

Explanation:

It is a conditional statement in programming in which functions is only performed if it is proven to be true. It is a conditional statement in programming, for example

If (X<10) {

Print "Hello James" ;

}.

Answer:

else

Explanation:

In an If..else statement, the if clause is executed when the condition in the decision tested for is true while the else clause will be executed when the condition in the decision is false.

For example, give the following block of pseudocode;

===============================================

x = 8;

if (x > 10){

    print ("it is greater");  

}

else {

    print ("it is less or equal");

}

===============================================

In the code above, the condition in the decision to be tested for is;

x > 10

If this condition is true, then the statement in the if clause (i.e print("it is greater")) will be executed.

Otherwise, if the condition is false, the statement in the else clause(i.e print("it is less or equal")) will be executed.

In this case, since the condition in the decision is false (since x = 8 and it is not greater than 10), the else clause statement will be executed as follows;

It is less or equal