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

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

Related questions

4 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: 21968 - Available when: Unlimited - Due to: Unlimited
| 318 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: 21964 - Available when: Unlimited - Due to: Unlimited
| 250 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: 21961 - Available when: Unlimited - Due to: Unlimited
| 238 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: 21960 - Available when: Unlimited - Due to: Unlimited
| 263 views
4 like 0 dislike
0 answers
[Normal] Coding (C) - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21971 - Available when: Unlimited - Due to: Unlimited
| 252 views
12,783 questions
183,443 answers
172,219 comments
4,824 users