// While this doesn't prompt the user for input, it does reverse the values' contents. $intA = '10';
$intB = '20';
$tmp = $intA;
$intB = $intA;
$intA = $tmp;
print $intA; // 20
print $intB; // 10 // An even quicker way is...
list($b,$a) = array($a,$b);
Chat with our AI personalities
When adding two integers, the answer will be positive if both integers are positive, or if one is negative but its absolute value is smaller than the absolute value of the positive integer.
There are two integers +5 and -5
It is important to add and subtract integers: to get a new integer value in mathematics .
None. Integers can be negative, absolute values cannot. Absiolute values can be rational or irrational fractions, integers cannot.
Yes.