Computer Science, asked by ahmmedmuhammed4804, 8 months ago

Rewrite the following program segment using the if.... Else statement comm =(sale >15000)?sale*5/100.0;

Answers

Answered by XUVBOY0444
13

ANSWER:

if(sale>15000)

{

comm = sale*5/100.0;

}

Answered by rohitsinghpryg
24

Answer:

if(sale>15000)

{

int a = (sale*5)/100

System.out.println(a);

}

else

{

int a = 0;

System.out.println(a);

}

Similar questions