تابعی بنویسید که آخرین مصوت هر کلمه را در یک جمله حذف کند.
نمونه ورودی و خروجی
remove_last_vowel("Those who dare to fail miserably can achieve greatly.") ➞ "Thos wh dar t fal miserbly cn achiev gretly."
remove_last_vowel("Love is a serious mental disease.") ➞ "Lov s serios mentl diseas."
remove_last_vowel("Get busy living or get busy dying.") ➞ "Gt bsy livng r gt bsy dyng."
نکته
حروف مصوت عبارتند از: a, e, i, o, u
(اعم از حروف بزرگ و کوچک).
remove_last_vowel("Those who dare to fail miserably can achieve greatly.") ➞ "Thos wh dar t fal miserbly cn achiev gretly."
remove_last_vowel("Love is a serious mental disease.") ➞ "Lov s serios mentl diseas."
remove_last_vowel("Get busy living or get busy dying.") ➞ "Gt bsy livng r gt bsy dyng."
نظرات