4 like 0 dislike
265 views
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
[Normal] Coding (C) - asked in Introduction to Computer Programming I (C) by (20.9k points)
ID: 21971 - Available when: Unlimited - Due to: Unlimited

retagged by | 265 views
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.71.255.65
©2016-2025

Related questions

5 like 0 dislike
1 answer
[Normal] Essay (Open question) - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21973 - Available when: Unlimited - Due to: Unlimited
| 362 views
5 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21972 - Available when: Unlimited - Due to: Unlimited
| 295 views
4 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21970 - Available when: Unlimited - Due to: Unlimited
| 286 views
5 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21975 - Available when: Unlimited - Due to: Unlimited
| 280 views
4 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21966 - Available when: Unlimited - Due to: Unlimited
| 266 views
12,783 questions
183,443 answers
172,219 comments
4,824 users