Computer Science, asked by ray887553, 9 months ago

wap to input any number and check if its last digit is 5 or not using if else​

Answers

Answered by GamingG0d007
0

Answer:

x=input("enter your no. : ")

d=x[-1]

while(d == "5"):

          print('value ends with 5')

else:

          print('value does not end with 5')

Explanation:

This programme is in python ad uses string slicing method comment if need further explanation

Similar questions