#P324. 特別的大寫技巧

特別的大寫技巧

題目描述

請同學設計一款程序,用戶輸入一句英文句子(英文字母全小寫),程序將句子裡每個英文單詞的最後一個字母轉成大寫,並在句子最後加上「~!」標點符號。

輸入格式

輸入一句英文句子(英文字母全小寫、不用打句號)。

輸出格式

將句子裡每個英文單詞的最後一個字母轉成大寫,並在句子最後加上「~!」標點符號。

Samples

you become what you study
yoU becomE whaT yoU studY~!
life was like a box of chocolates
lifE waS likE A boX oF chocolateS~!
the journey is what brings us happiness not the destination
thE journeY iS whaT bringS uS happinesS noT thE destinatioN~!

原始資料

  • Zero1 題號:a324
  • Hydro 題號:Z0324
  • Locale:zh_TW
  • Display:practice