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

Which of the following groups of people would be the least affected by air pollution? a. people with asthma b. infants c. teenagers d. the elderly
Use the bond energies provided to estimate ΔH°rxn for the reaction below. C2H4(g) + H2(g) → C2H6(g) ΔH°rxn = ? Bond Bond Energy (kJ/mol) C-C 347 C-H 414 C=C 611
Help with number four
What is the appropriate food measurement for women? 2 palms of protein, 1 fist of vegetables, 2 cupped handfuls of carb dense foods, and 2 entire thumbs of fat
help!! I really need it PLEASE PPPPPPPPPLLLLLLLLLLLLLLLEEEEEEEEEEEEEAAAAAAAAAASSSSSSSS
Cube roots only have 1 real root true or false
Which inequality has the solution set shown in the graph?
What remainder does the sum 2222+2333 leave after division? Each one has an answer! Need answer quickly! 18 points! by 4? by 6? by 9? by 12?
60.0 mL of 3.00 M Na2CO3 and 40. mL of 2.00 M CaCl2 were mixed together. What is the limiting reagent, and what is the theoretical yield of Ca2CO3 in moles?
Hector is a state court judge. Ilena appears in a case in Hector’s court, claiming that Jacob breached a contract. Possible remedies include a. ​imprisonment. b