#include<iostream>
int main()
{
using namespace std;
char ch; int count = 0;
cout << "Enter your words :";
while (cin>>ch)
{
cout << ch;
if (ch == '$')
break;
count++;
}
cout << "\nTotaly,we have " << count << " characters.\n";
return 0;
}
int main()
{
using namespace std;
char ch; int count = 0;
cout << "Enter your words :";
while (cin>>ch)
{
cout << ch;
if (ch == '$')
break;
count++;
}
cout << "\nTotaly,we have " << count << " characters.\n";
return 0;
}