182k views
1 vote
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.

User Shah
by
5.4k points

1 Answer

3 votes

Answer:

if(a < 10)

{ b = 0; c = 1;}

else

{ b = -99; c = 0;}

Step-by-step explanation:

User Swinn
by
5.5k points