logo CodeStepByStep logo

count_letters

Related Links:
Author: Allison Obourn (on 2020/09/14)

Write a program that prompts the user for text until the user types quit, then outputs the total number of characters typed.

Type a word (or "quit" to exit): hello
Type a word (or "quit" to exit): yay
Type a word (or "quit" to exit): quit
You typed a total of 8 characters.
Function: Write a C function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.