โ Back to If Statements
Question 321
Sign of Product
Sign of Product
Read two integersaandb, each on its own line. Look at the sign of their producta * b: if the product is zero printZero, if it is positive printPositive, and if it is negative printNegative. For example, for input-3then4, print: Negative
Expected Output:
Negative
Topics:
If Statements
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.