4 喜歡 0 不喜歡
127 瀏覽
Write a program that reads a string of up to 100 characters and displays it after replac­ing all 'a' characters that exist at the beginning and at the end of the string with the space character ('    '). For example, if the user enters "aabbadaa", the program should display "bbad".

Sample Input 1:

aaTriHarda

Sample Output 1:

TriHard

Sample Input 2:

ResidentSleeper

Sample Output 2:

ResidentSleeper

 

References: C From Theory
[正常] Coding (C) - 最新提問 分類:Introduction to Computer Programming I (C) | 用戶: (20.9k 分)
ID: 21971 - 從幾時開始: 無限制 - 到幾時結束: 無限制

標籤修改 用戶: | 127 瀏覽
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.58.45
©2016-2024

相關問題

5 喜歡 0 不喜歡
1 回答
[正常] 開放式問答 - 最新提問 2月 19, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21973 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 188 瀏覽
5 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 2月 19, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21972 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 146 瀏覽
4 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 2月 19, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21970 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 134 瀏覽
5 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 2月 19, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21975 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 152 瀏覽
4 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 2月 19, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21966 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 124 瀏覽
12,783 問題
183,443 回答
172,219 留言
4,824 用戶