I am writing a program that switches a binary number into a decimal number and am only a novice programmer. I am stuck trying to determine that the string that was entered is a
n!=1 || n!=0 is always true because you cannot have n = 0 and 1 at the same moment. I guess you wanted to write n!=1 && n!=0.
n!=1 || n!=0
n!=1 && n!=0