Computer Science, asked by rehan33, 1 year ago

rewrite the following using if else statement
come=(sale>15,000)?sale*5/100:0;

Answers

Answered by silu5
4
Here is your answer⏬

Q)Rewrite the following using if else statement
come=(sale>1500)sale*5/100:0;


Output ⏬⏬



if (sale>1500)
come=sale*5/100;
else
come=0;



For a more clear concept refer to the attachment



Hope this helps you ^_^
Attachments:
Answered by cricketerrajan2007
0

Answer:

Q)Rewrite the following using if else statement

come=(sale>1500)sale*5/100:0;

Output ⏬⏬

if (sale>1500)

come=sale*5/100;

else

come=0;

For a more clear concept refer to the attachment

Explanation:

Similar questions