Question: Rewrite the following if statement using the conditional operator. if(sales >= 1000) bonus = 200; else bonus = 50; Your Answer: if(sales >= 1000) sales
Rewrite the following if statement using the conditional operator.
if(sales >= 1000) bonus = 200; else bonus = 50;
Your Answer:
if(sales >= 1000) sales >= 1000; else bonus = 50;
if
{
sales >= 1000
bonus = 200
}
else{
bonus = 50
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
