Hi everyone. I'm having difficulty with an assignment today. Reviewing my textbook, I'm missing any information regarding calculating if an imputed integer is even and a multiple of a specific number.
What I figure I have to do is divide the integer the user inputed by 2 to figure if it's even. However, I don't know how to get past that.
Here is the assignment at hand...
What I figure I have to do is divide the integer the user inputed by 2 to figure if it's even. However, I don't know how to get past that.
Here is the assignment at hand...
Quote:This program should prompt the user to enter an even integer that is an exact multiple of either 13 or 19. The program should analyze the input and display a congratulatory response for good inputs and informative responses for bad ones. For correct user input, the program should also display the other factor. See sample runs below.
Sample Runs
Enter an even multiple of 13 or 19 381
No. Not EVEN and misses multiple requirement
Enter an even multiple of 13 or 19 247
No. Multiple okay but not EVEN
Enter an even multiple of 13 or 19 260
Good, 260 is 13 * 20.0
def main(): number = int(input('Enter an even multiple of 13 or 19 ')) if number // 13 or 19 == main()Any tips?