Checking if a number is divisible by 2?
I'm trying to write a program that checks if a number is divisible by 2. The input needs to be a number(Obviously xD). If the input is not a number, it needs to say something along the lines of "Input is not a number. Please enter a number!". If the input is a number, it needs to display 1 of 2 things: 1. "VariableNumber is not divisible by 2. 2. VariableNumber is divisible by 2. Everything I try fail. In my last attempt, I was able to make it so it would display those 2 things, but entering letters caused it to print "(random letters) is not divisible by 2.". I manged to fix it, but then all of the sudden, everything was divisible by 2. So I need help. Here's the new code I just started. You can go about displaying the output any way you want. https://code.sololearn.com/W71keXUbAKcL/#html