← Back to If Statements
Question 330
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= newline. No newline after the last line.
Hints4 available
Sign in to use hintsTopics:
If Statements
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · 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.