num = int(input("Enter a Number:"))
if num % 2 == 0:
print(num , "is even")
else:
print(num , "is odd")
num = int(input("Enter a number: "))
if (num % 2) == 0:
print("{0} is Even number".format(num))
else:
print("{0} is Odd number".format(num))
num = int(input("Enter a number: "))
if (num % 2) == 0:
print("{0} is Even".format(num))
else:
print("{0} is Odd".format(num))
num = int(input("Enter a number: "))
if (num % 2) == 0:
print("{0} is Even".format(num))
else:
print("{0} is Odd".format(num))
num = int(input("Enter a number: "))
if (num % 2) == 0:
print(num ,"is even number
")
#CODE BY VENOM STONE
else:
print(num,"is Odd number
")
#CODE BY VENOM STONE
a = int(input("Enter the number to find odd or even "))
if (a % 2) == 0:
print("{0} is Even".format(a))
else:
print("{0} is Odd".format(a))
count2 = 0
for odd_number in range(1, 20):
if odd_number % 2 != 0:
count2 += 1
print(odd_number)
print(f"we have {count2} odd numbers")
>>> def isodd(num):
return num & 1 and True or False
>>> isodd(10)
False
>>> isodd(9)
True
for tc in range(int(input())):
a,b = map(int,input().split())
x = b//2 + (b%2)
y = a//2
print("Case %d: %d"%(tc+1,x*x-y*y))
"""
Input:
2
1 10
2 10
Output:
Case 1: 25
Case 2: 24
"""