(Solved):(1) Prompt the user to enter a string of their choosing. Output the string. Ex: Enter a sentence or phrase: The only thing we have to fear is fear itself. You entered: The only thing we have to fea… View Answer…

 

Question

(1) Prompt the user to enter a string of their choosing. Output the string.

Ex:

Enter a sentence or phrase: The only thing we have to fear is fear itself.

You entered: The only thing we have to fear is fear itself.

(2) Complete the GetNumOfCharacters() function, which returns the number of characters in the user’s string. We encourage you to use a for loop in this function.

(3) In main(), call the GetNumOfCharacters() function

Scroll to top