- Jump To Level 1 1 Write A While Loop That Counts The Number Of Characters Read From Input Until Character E Is Read C 1 (195.54 KiB) Viewed 33 times
Jump to level 1 1 Write a while loop that counts the number of characters read from input until character 'e' is read. C
-
- Site Admin
- Posts: 899603
- 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