String Ends With

Easy

📝 Description

Check if a string ends with a given suffix

Input Format

String and suffix

Output Format

"Yes" or "No"

Constraints

1 ≤ string.length, suffix.length ≤ 100

🔍 Sample Input

"hello"
"lo"
            

✅ Sample Output

Yes
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run