10. Write a program to take an integer a as an input and check whether it ends with 4 or 8. If it ends with 4 print “ends with 4”, if it ends with 8, print “ends with 8”, otherwise print “ends with neither”.

a = input(‘Enter a number : ‘)
if a[-1] == ‘4’:
print(‘ends with 4’)
elif a[-1] == 8:
print(‘ends with 8’)
else:
print(‘ends with neither’)