cs/Practical File/outputs/question_05_output.txt
Neil Revin 780baf678e
chore: move question & output files
Move python question files to 'questions' directory
Move output files to 'outputs' directory
Copy output files to 'questions' for ease of viewing

Signed-off-by: Neil <neil@willofsteel.me>
2025-06-24 02:34:07 +05:30

16 lines
236 B
Plaintext

Question 05:
Write a Python program to find whether a given number is even or odd.
Answer:
def main(num: int) -> None:
print("Even" if num % 2 == 0 else "Odd")
if __name__ == '__main__':
main(2)
main(3)
Output:
Even
Odd