Jump to level 1 1 Write a while loop that counts the number of characters read from input until character 'e' is read. C
Posted: Mon Jun 06, 2022 5:53 pm
Jump to level 1 1 Write a while loop that counts the number of characters read from input until character 'e' is read. Character 'e' should not be included in the count. 2 Ex: If input is r u e, then the output is: 2 2 using namespace std; 3 4 int main() { 5 char userCharacter; 6 int result; 7 8 result = 0; 9 cin>> userCharacter; 10 11 /*Your code goes here */ 12 cout << result << endl; return 0; 3 341516 16} 1 2