Login


Lost your password?

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


Shop
Java All : Simple If and If-Else Selection


Exam Papers Problems

if-else to ternary conversion #4069

( As In Exam - ICSE2018 )

Rewrite the following using ternary operator:
if (bill>10000)

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



Exam Paper Problems:1 
Back