Thank you for the opportunity to help you with your question!
If n=12, it is >0 and even number
Hence it will return n+1 = 12+1= 13
If n=-20, it is <0,
Hence it will return n-1 = -20-1 = -21
If n=9, it is > 0 and odd number
Hence it will return 2n = 2*9 = 18
Content will be erased after question is completed.
Enter the email address associated with your account, and we will email you a link to reset your password.
Forgot your password?