โ Back to If Statements
Question 336
Negative Balance Warning (No Input)
Negative Balance Warning (No Input)
Create adoublevariablebalanceset to-25.5. Ifbalance < 0, printWarning: 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.