jazprincezz6284 jazprincezz6284
  • 11-07-2019
  • Computers and Technology
contestada

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.

Respuesta :

yuvalileibovich475
yuvalileibovich475 yuvalileibovich475
  • 11-07-2019

Answer:

if(a < 10)

{ b = 0; c = 1;}

else

{ b = -99; c = 0;}

Explanation:

Answer Link

Otras preguntas

Please help me with this homework
what note for percussun is this??
AB, CD and EF are straight lines. ZCOE = 50° and ZBOF = 30°. Find Zx and Zy.
Sami earns £4.50 per hour. How many hours does he need to work to earn £90?
Fluoride ion is poisonous in relatively low amounts: 0.2 g of F− per 70 kg of body weight can cause death. Nevertheless, in order to prevent tooth decay, F− ion
Determine the location of the vertex and determine the nature of the vertex for the graphs of: y = x^3 - 6x^2 -15x + 7
Complete the sentences with the correct form of the words in capitals. 1 Cesar was............when he saw the boy kick the dog. DISGUST 2 Being lost in the fore
Which of the following sentences is an example of the present tense? 1. Football is my favorite sport. 2. Amal hurt his arm playing football yesterday. 3. My fo
What is 2/3 + -1/4 = plz help lol I’m lost :)
what happens to temperature and thermal energy during phase change​