CJCoding With Joseph
15free / daySign inCreate account

Discount Eligibility

A store gives a discount on orders of 50 dollars or more. Read a double amount (the order total). If amount is at least 50, print Discount; otherwise print No discount.

For example, given the input 60, 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
Topics:
If Statements
📥 Auto-Input:
60
This input is automatically fed to your program's stdin
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.