โ Back to If Statements
Question 260
Sign of a Product
Sign of a Product
Read two integers withscanfand consider their product. PrintPositiveif the product is greater than zero,Negativeif it is less than zero, orZeroif it equals zero. No trailing newline. For input3 4the output isPositive; for-3 4it isNegative; for0 5it isZero.
Expected Output:
Positive
Topics:
If Statements
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (p, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.