- 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 Antworten
+ 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.