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

Unlike a mineral, a rock _____. is made up of exclusively carbon is made up of multiple substances is made up of inorganic compounds is a natural resource
What does the word part patri- mean? adulthood childhood maternal paternal
Marion fills a bucket with water . The capacity of the bucket is 2 quarts .what is the capacity of Marion's bucket in gallons ? 1 gallon =4 quarts A. 1/4 B. 1/
Which part of French society was affected by the adoption of the Napoleonic Code? A. the banking system B. the schools C. the military D. the legal system
Julio walks 3 1/2 miles in 1 1/4 hours. What the unit rate?
Which of the following is most likely to happen if a person drinks untreated water from a roadside ditch? The person might develop allergies to any mold and pol
Which is a complete sentence? A. Piles of papers were recycled. B. If I go shopping with my friends. C. Wrote a letter to the company. D. Made dinner for the wh
Which sentence uses a verb that agrees with its subject? A. The trees on the hill near the edge of the city was on fire. B. The animals on our farm wakes at 5 a
Julio walks 3 1/2 miles in 1 1/4 hours. What the unit rate?
Why does ice stay at the top of oceans instead of sinking to the bottom? Ice is colder than liquid water. Ice is warmer than liquid water. Ice is more dense tha