wap to input any number and check if its last digit is 5 or not using if else
Answers
Answered by
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
History,
4 months ago
Biology,
4 months ago
History,
9 months ago
Biology,
9 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago