Python Program to Check if Last Digit of Number Is Divisible By 4 || Conditional Statement || Python

In this we are going to see a program to check whether last digit of a number is divisible by 4 in Python Programming Language.


num = int(input("Enter The Number : "))
lastD = num % 10
if lastD % 4 == 0:
    print("Last Digit Divisible By 4")
else:
    print("Last Digit Not Divisible By 4")

# Coded By DHIRAJ SHELKE


#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post