Computer Science, asked by kcnandeta, 3 days ago

8. Rewrite the following using ternary operator.
(a) if (x% 2 = = 0)
System.out.println("Even");
else
System.out.println("Odd");
(b) if (bill>10000)
discount=bill *10.0/100;
else
discount=bill*5.0/100;
(c) if(income< 10000)
tax = 0
else
tax = 12
(d) if(a>b)
{
if(a>c)
g=a;
else
g=c;
}
if(b>c)
g=b;
else
g=c;
(e) if(p>=4750)
k=p*5/100;
else
k=p*10/100;
pls urgent help me​

Answers

Answered by Ishaanchinu
0

Explanation:

how are aliens

Similar questions
Math, 1 day ago
Math, 3 days ago