Computer Science, asked by iloveselena6926, 11 hours ago

Write a program to accept a number from the user and check if it ends with 4 or 8

Answers

Answered by tarunntech2006
0

Answer:

a = int(input("Enter an number: ")

if a % 10 == 4 :

   print("ends with 4")

elif a % 10 == 8 :

   print("ends with 8")

else :

   print("ends with neither")

Explanation:

plz mark me as Brainliest

Similar questions