Computer Science, asked by Mehek2005, 2 months ago

write a statement in java using ternary operator to calculate the absolute value of a number.​

Answers

Answered by Anonymous
1

Answer:

A ternary operator allows you to assign one value to the variable if the condition is true, and another value if the condition is false. The if else block example from above could now be written as shown in the example below. var num = 4, msg = ""; msg = (num === 4)

Explanation:

plz mark me as brainiest.

Similar questions