← Back to If Statements
Question 378
Discount Eligibility
Discount Eligibility
A store gives a discount on orders of 50 dollars or more. Read adoubleamount(the order total). Ifamountis at least 50, printDiscount; otherwise printNo discount. For example, given the input60, the program prints the output shown in Expected Output.
Expected Output:
Discount= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
If Statements
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (cout, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.