Write a program to display 1 if inputted number is either 1 or 100 otherwise 0.use the logical OR operator.
The program takes an input integer value “x”. Then it checks the value of x using a logical OR operator. The expression x==1 || x==100 returns true if the value of x is equal to either 1 or 100, otherwise, it returns false. The ternary operator (?) assigns the value 1 to the variable “z” […]