Ends with 5 Problem
Ends with 5 Problem — ExecCode School DSA Practice
Solve the Ends with 5 problem on ExecCode. Free online school DSA practice in Combined Simple Logic. Write and run code in Java, C++, Python — no signup required to run.
Problem description
You are given a whole number N. Your task is to check whether N ends with the digit 5. Print Yes if the last digit of N is 5. Otherwise, print No.
Examples
Input 25; Output Yes. Input 20; Output No
Constraints
1 <= N <= 10^4
Practice Ends with 5 free on ExecCode. Browse DSA problems, topic map, and placement guides.