Computer Science, asked by ucfree750, 6 hours ago

rewrite the following using ternary operator if(amount<200) discount =100;else discount=200​


pls answer fast

Answers

Answered by rabi3bhat
1

Explanation:

discount=( amount <200) ? 100:200

syntax of ternary operator:

variable name= condition ? exprIfTrue : exprIfFalse

Similar questions