If Statements
If Statements
November 6, 2024
1 IF statement
[ ]: num=int(input('enter data:'))
if num%2 == 0:
print('number is even')
print('End of if')
if num%2 == 0:
if num%3 == 0:
print ("Divisible by 3 and 2")
else:
print ("Divisible by 2 not divisible by 3")
else:
if num%3 == 0:
1
print ("Divisible by 3 not divisible by 2")
else:
print ("not Divisible by 2 not divisible by 3")
if b > a:
pass