5 like 0 dislike
119 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 | 119 views
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.178.221
©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
| 171 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
| 128 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
| 110 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
| 136 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
| 120 views
12,783 questions
183,443 answers
172,219 comments
4,824 users