Rewrite the following program segment using the if.... Else statement comm =(sale >15000)?sale*5/100.0;
Answers
Answered by
13
ANSWER:
if(sale>15000)
{
comm = sale*5/100.0;
}
Answered by
24
Answer:
if(sale>15000)
{
int a = (sale*5)/100
System.out.println(a);
}
else
{
int a = 0;
System.out.println(a);
}
Similar questions