Ask Question
24 June, 21:23

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.

+2
Answers (1)
  1. 24 June, 22:57
    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 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