Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- setlocale(LC_ALL, "rus");
- char c[200];
- cout << "Enter your name: ";
- gets_s(c);
- int i = 0;
- while (c[i] != '\0')
- {
- i++;
- }
- cout << "In your name " << i << " characters!\n";
- cout << "Input: " << c << '\n';
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement