SHARE
TWEET

Untitled

a guest Jun 20th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main()
  2. {
  3.     setlocale(LC_ALL, "rus");
  4.  
  5.     char c[200];
  6.  
  7.     cout << "Enter your name: ";
  8.     gets_s(c);
  9.    
  10.     int i = 0;
  11.    
  12.     while (c[i] != '\0')
  13.     {
  14.         i++;
  15.     }
  16.    
  17.     cout << "In your name " << i << " characters!\n";
  18.     cout << "Input: " << c << '\n';
  19.  
  20.  
  21.     system("pause");
  22.     return 0;
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top