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’)
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’)