#include<iostream> int main() { using namespace std; char ch; itn count = 0; cout << "Enter characters; enter # to quit:\n"; cin >> ch; while(char != '#'){ cout << ch; ++count; cin >> ch; } cout << endl << count << " characters read\n"; return 0; }
#include<iostream> int main() { using namespace std; char ch; itn count = 0; cout << "Enter characters; enter # to quit:\n"; cin >> ch; while(char != '#'){ cout << ch; ++count; cin >> ch; } cout << endl << count << " characters read\n"; return 0; }