CJCoding With Joseph

Negative Balance Warning (No Input)

Create a double variable balance set to -25.5. If balance < 0, print Warning: negative balance.

The expected output is:

Warning: negative balance

Expected Output:

Warning: negative balance
Topics:
If Statements
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.