Ask Question
20 September, 07:44

Which statement correctly tests int variable var to be less than 0 or more than 50?

+2
Answers (1)
  1. 20 September, 08:26
    0
    if-else statement.

    Explanation:

    if-else is the conditional statement that can be used for checking the condition.

    Syntax of if-else statement:

    if (condition) {

    statement;

    }else{

    statement;

    }

    if the condition put in the if part is TRUE, then the statement inside the if will execute. if the condition put in the if part is FALSE, then the else part will execute.

    In the question for testing the variable var is less than or more than 50, if-else statement is best statement.

    We can used like that:

    if (var50) {

    printf ("Test pass");

    }else{

    printf ("Test failed");

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Which statement correctly tests int variable var to be less than 0 or more than 50? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers