CJCoding With Joseph

Discount Eligibility (Input)

Read an int called amount (a purchase total in dollars) from standard input. If amount >= 100, print You get a discount; otherwise print No discount.

For the input 150 the output is:

You get a discount

Expected Output:

You get a discount
Topics:
If Statements
๐Ÿ“ฅ Auto-Input:
150\n
This input is automatically fed to your program's stdin
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (sysout, psvm, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.