Ask 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, it should assign - 99 to the variable b and assign 0 to the variable c.

+1
Answers (1)
  1. 19 February, 18:42
    0
    if (a < 10)

    { b = 0; c = 1; }

    else

    { b = - 99; c = 0; }
Know the Answer?
Not Sure About the Answer?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers