From 9f309db3cddc6536c9150c852641c8483de0187d Mon Sep 17 00:00:00 2001 From: Sharmily-Veeramani Date: Fri, 6 Dec 2024 15:55:13 +0530 Subject: [PATCH] changed the arithmetic symbol of '/' to '%' --- problems/easy/easy_q1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/problems/easy/easy_q1.py b/problems/easy/easy_q1.py index 546c19b..50fa9f4 100644 --- a/problems/easy/easy_q1.py +++ b/problems/easy/easy_q1.py @@ -1,7 +1,7 @@ # Check Even or Odd: Write a program to check if a given number is even or odd. num = int(input("Enter a number: ")) -if (num / 2) != 0: +if (num % 2) != 0: print("{0} is Odd".format(num)) else: print("{0} is Even".format(num))