Computer Science, asked by kathahinassiruddinto, 6 months ago

17. Arif's father is a businessman.
He wants to determine whether he
made a profit or loss based on the
revenue figures. Suggest an
appropriate conditional construct
he can use to solve the problem.

Answers

Answered by omkarKing2708
32

Answer:

17. Arif's father is a businessman.

He wants to determine whether he

made a profit or loss based on the

revenue figures. Suggest an

appropriate conditional construct

he can use to solve the problem.

Answered by sujan3006sl
7

Answer:

If-else is the appropriate conditional construct that he can use to solve the problem.

Explanation:

An if statement may be followed by an optional else statement if the Boolean expression is false.

Syntax:

if(boolean_expression) {

/*If the boolean expression is true, the statement(s) will be executed. */

} else {

/*If the boolean expression is false, the statement(s) will be executed. */

}

  • An if...else statement in the C programming language looks like this.
  • If the Boolean statement evaluates to true, the if block is executed; otherwise, the else block is executed.
  • In the C programming language, any non-zero and non-null value is assumed to be true, whereas zero and null values are assumed to be false.

#SPJ3

Similar questions