Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
Java All : Simple If and If-Else Selection



Exam Questions
ICSE2018-03I  if-else to ternary conversion #4069 

Rewrite the following using ternary operator:
if (bill>10000)
discount=bill*10.0/100;
else
discount = bill*5.0/100;

Rewrite the following using ternary operator: if (bill>10000) discount=bill*10.0/100; ...

Exam Questions:1 
Back