rewrite the following using ternary operator if(amount<200) discount =100;else discount=200
pls answer fast
Answers
Answered by
1
Explanation:
discount=( amount <200) ? 100:200
syntax of ternary operator:
variable name= condition ? exprIfTrue : exprIfFalse
Similar questions