- 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 Answers
+ 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