Question: Even Value or Zero Task Write a Python script named even-value-or-zero.py which reads and integer (n, say) and: if n is even then outputs the
Even Value or Zero Task Write a Python script named even-value-or-zero.py which reads and integer (n, say) and: if n is even then outputs the value n, or ifnis odd, then outputs just 0. (This is the same as the previous task, except the other way around.) Example input 1 3 Example output 1 0 Example input 2 4 Example output 2 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
