Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <windows.h>
- void main()
- {
- char str[200];
- char space[10] = { ' ' };
- char smb = { ',' };
- char symb = { ' ' };
- SetConsoleCP(1251);//включить кодировку Win1251 при вводе с консоли
- SetConsoleOutputCP(1251);//включить кодировку Win1251 при выводе на консоли
- printf("Введите текст:n");
- gets_s(str);
- int i = 0,len,ns=0,ks,j,k;
- len = strlen(str);//длина строки
- while (str[i] != '