4 喜歡 0 不喜歡
138 瀏覽
Write a program that reads a string of up to 100 characters, and if its length is less than three characters, it should force the user to enter a new one. Next, the program should read a character and check if the string contains the input character three times in a row. The program should display the position of the first triad found.

 

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

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

相關問題

4 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 2月 19, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21969 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 128 瀏覽
5 喜歡 0 不喜歡
1 回答
[正常] 開放式問答 - 最新提問 2月 19, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21977 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 195 瀏覽
5 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 2月 19, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21975 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 159 瀏覽
4 喜歡 0 不喜歡
0 回答
[正常] Coding (C) - 最新提問 2月 19, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21971 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 130 瀏覽
5 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 2月 19, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21978 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 163 瀏覽
12,783 問題
183,443 回答
172,219 留言
4,824 用戶