Ask Question
21 March, 09:16

Write an if else statement that assigns 0 to the variable b and assigns 1 to the variable c if the variable a is less than 10. Otherwise, it should assign - 99 to the variable b and assign 0 to the variable c.

+5
Answers (1)
  1. 21 March, 11:03
    0
    if (a < 10)

    { b = 0; c = 1; }

    else

    { b = - 99; c = 0; }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write an if else statement that assigns 0 to the variable b and assigns 1 to the variable c if the variable a is less than 10. Otherwise, ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers