Question: C# problem : This problem requires a user to enter a series of strings. Each time the user enters a string, you must tell the

C# problem :

This problem requires a user to enter a series of strings. Each time the user enters a string, you must tell the user how long the string is. Then ask the user to enter another, longer string. Keep doing that until the user enters a string that is not longer than the previous string. Your output should look like the example below. The yellow highlights indicate user input

C# problem : This problem requires a user to enter a series

Enter a string: Here's a string. That string is 16 character(s) long. Good. Now enter a longer string: Here's a longer string. That string is 23 character(s) long. Good. Now enter a longer string: Here's a MUCH longer string. That string is 28 character(s) long. Good. Now enter a longer string: This string is really super, duper long! That string is 40 character(s) long. Good. Now enter a longer string: Is this long enough? That string is 20 character(s) long. Sadly, that was not longer than the previous string

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!