- 4
If2. Given the whole number. If it is positive, then add to it 1; in the opposite case the deduction from it .
program? please help š
2 Answers
+ 6
ŠŠ¹Š½ŃŃŠ° ŠŃŠ°Š½ŃŠ°ŠµŠ²Š° what is difficult about it ? Either learn basics of java or learn what is considered as a positive or negative number.
+ 4
if the number is greater than 0 then add 1 to this
and if the number is smaller than 0
then decrase this number by 1.