Lab 9 warmup
1. Write a program that asks the user to enter a string less than 25
characters long and prints the first letter in the string and how many
characters are in the string.
Example:
Enter string: magic
The first letter is m and the string is 5 characters long.
2. Write a program that asks the user to enter a string less than 25
characters long and prints the letters in reverse order.
Example:
Enter string: magic
cigam
3. Write a program that declares a string named sentinel to
be declared with the value "quit". Then write a loop
that reads strings from the user until the sentinel value is
encountered.
Example:
ready
quilt
quitting
quit