5 喜歡 0 不喜歡
111 瀏覽
Write a program that forces the user to enter a string with more than 5 characters and less than 100 characters and displays it. Don't use gets(). If less than or equal to 5 characters, greater than or equal to 100 characters, print "Invalid result"

Sample Input 1:

abcdefg

Sample Output 1:

abcdefg

Sample Input 2:

abc

Sample Output 2:

Invalid result

 

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

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

相關問題

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