1) Use increment (++) and decrement (-) operator. Example When x=4, x++ returns 5 and x- returns 3.

2) Use conventional + or – sign. Example When x=4, use x+1 to get 5 and x-1 to get 3.

239 questions

203 answers

2 comments

692 users