Jump to level 1 1 Write a while loop that counts the number of characters read from input until character 'e' is read. C
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Jump to level 1 1 Write a while loop that counts the number of characters read from input until character 'e' is read. C
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!