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
English,
5 months ago
English,
5 months ago
Physics,
5 months ago
History,
10 months ago
Biology,
10 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago