Chat with our AI personalities
Negative * positive = negative Positive * positive = positive Negative * negative = positive
write a c++program by using if statement to read a number and check whether it is positive or negative
* If "a" is positive, "-a" is negative.* If "a" is negative, "-a" is positive. * If "a" is zero, "-a" is zero. If you want to force a negative number, you can write -|a|, i.e., the negative of the absolute value.
if p represents your positive number, and n represents all of your negative numbers, then: |∑n| < p
if it is not like that then the answer wont be write. Well, It is to be known that two negatives make a positive.