Computer Science, asked by mohamedsinan1110, 7 months ago

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 blossom35
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 yesiamin6
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