4 喜歡 0 不喜歡
362 瀏覽
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 - 從幾時開始: 無限制 - 到幾時結束: 無限制

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

相關問題

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