Rewrite using Conditional (Ternary) operator:
if(amount<=5000)
discount= amount*2.0/100;
else if(amount>=501 & amount<=1000)
discount=amount*4.0/100;
else
discount=amount*6.0/100;
Answers
Answered by
1
Answer:
what is your question????????????????
Answered by
0
Answer:
I can't understand ur question
Explanation:
please mark me as brainlist
Similar questions