chubbybunny1304 chubbybunny1304
  • 21-07-2022
  • Computers and Technology
contestada

Create a conditional expression that evaluates to string negative if user_val is less than 0, and non-negative otherwise.

Respuesta :

1207449
1207449 1207449
  • 21-07-2022

Answer: I am supposed to write a few lines of code to create a conditional expression (ternary operation) that evaluates to string "negative" if user_val is less than 0 and "non-negative" if 0 or greater than 0.

The code I currently have prints "negative" when the number is less than zero but when a number 0 or greater is assigned to user_val it doesn't print "non-negative."

Answer Link

Otras preguntas

When setting your schedule, it is sometimes necessary to tell people "No." Please select the best answer from the choices provided.
Question # 3 Dropdown Choose the option that best matches the description given. is noncorrosive to metal surfaces, and nonirritating to skin Question # 4 ​
im supposed to write an essay about tattoo art history what do I write
what is the maximum range of most hand held fire extinguishers
pls fill in the blank from the photo
if you deal with a monopoly in your life, what may you take if they raise prices too much?
Which of the following is a coterminal angle between 0 and 360° for-1045? A -315° B 35 C 215° D 325°
Why did Brainly charge me 57$
ayuda porfa es para hoy​
compute the average EHIS