Write a function to return 1 if a number is positive, 0 otherwise — without using comparison operators or if ?
Login to Submit
Input: -1 Output: 0 Input: 4 Output: 1 Input: -10 Output: 0