cs/practical-file/questions/question_05_output.txt
2025-06-24 02:37:47 +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