Question: In C++ Ex: If the inputis. n It's a sunny day, the output is: 2 Case matters: Ex if the input is n Nobody, the
Ex: If the inputis. n It's a sunny day, the output is: 2 Case matters: Ex if the input is n Nobody, the output is 0 n is different than N Hint. Create a loop to examine each character in the input string. The function string sizef returns the number of characters in the itring Ex if name is 'Sue', then name sized) is 3 . Use the string function at(position) to access each character in the input string Ex. If name is ' Sue; then name at(o) is's
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
