Sinux1

PS8Q2.cpp

May 3rd, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main ()
  5. {
  6.     string input;
  7.  
  8.     cout << "Enter a word:\n";
  9.     cin >> input;
  10.  
  11.     cout << "Character count: " << input.length() << "." << endl;
  12.     return 0;
  13. }
Add Comment
Please, Sign In to add comment