1.Python Program to check whether the
number is odd or even using if
statement.
2.Python program to print all the
numbers below 100 which are divisible
by 8.
Answers
Answered by
1
Answer:
Python Program to Check if a Number is Odd or Even
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))
Hope it can help you.....
Please Mark me as a brainlist.......
Answered by
1
Answer:
n=int(input("ent a number\n"))
if(n%2==0):
print("even")
else:
print("odd")
print("\n2nd answer\n")
for i in range(0,101):
if(i%8==0):
print(i)
Explanation:
Output is attached look at that
HOPE IT HELPS YOU
DO FOLLOW FOR MORE PROGRAMS
MARK AS BRAINLIEST
Attachments:
Similar questions
Math,
3 months ago
Math,
3 months ago
Math,
7 months ago
Science,
7 months ago
India Languages,
1 year ago