in what languange? I assume it's TI-Basic (or something else)
TI-Basic:
input A
if A < 0
then
disp "Negative"
else
if A > 0
then
disp "Positive"
else
if A = 0
then
disp"zero"
end
or PHP:
$a = $_POST['input'];
if ($a < 0) {
echo $a . " is smaller then one, meaning it's a negative number.";
} else if ($a > 0) {
echo $a . " is bigger then one, meaning it's a positive number.";
} else {
echo $a . " is a zero"
}
I'm sure you can convert it to c++ or something else. It's as simple as that!
write a c++program by using if statement to read a number and check whether it is positive or negative
the answer could be negative or positive depending on whether the negative number you're adding is bigger than the positive number
Any integer, whether it is positive or negative, is a rational number.
If the negative number is bigger then the answer will be negative If the bigger number is positive then the answer will be positive. All you do is subtract the two numbers and take the sign of the bigger number Ex (+2)+(-7)=(-5)
Any positive number is always bigger than a negative number - whether they are rational or irrational.
always 0 whether positive or negative number
It does not work that way. A negative power is simply the reciprocal. So that x-a = 1/xa The reciprocal is negative or positive according to whether the number itself is negative or positive. [And, if the number is 0, the reciprocal is not defined.]
When you divide or multiply positive and negative numbers, you first do the division or multiplication as normal. The next step is to assess whether or not the answer will be negative or positive. If the two numbers of the question were the same (negative and negative or positive and positive) then the answer will be positive. If the two numbers in the question were different (one negative and one positive) then the answer will be negative. Thus, if you divide a negative number by a positive number, the result will be the same as normal division, but the answer will be negative.
(positive number) x (positive number) = positive number (positive number)/(positive number) = positive number (positive number) x ( negative number) = negative number (positive number)/( negative number) = negative number (negative number) x (negative number) = positive number (negative number)/(negative number) = positive number
Any 2 negative numbers, whether even or odd, when multiplied are positive
A positive number. Positive Number x Positive Number = Positive Number Positive Number x Negative Number = Negative Number Negative Number x Negative Number = Positive Number
Depend on which is larger, that will determine whether your answer is positive or negative. For example -9 + 3 = -6. Polarity (so to speak) will be the larger value.