- 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 🙏

10th Feb 2021, 11:20 AM
Айнура Ишантаева
Айнура Ишантаева - avatar
2 Antworten
+ 6
Айнура Ишантаева what is difficult about it ? Either learn basics of java or learn what is considered as a positive or negative number.
10th Feb 2021, 11:29 AM
Abhay
Abhay - avatar
+ 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.
10th Feb 2021, 11:55 AM
JaScript
JaScript - avatar