Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- int main() {
- setlocale(LC_ALL, "rus");
- char text[200];
- char alph[] = "абвгдеёжзийклмнопрстуфхцчшщъыьэюя";
- fgets(text, sizeof(text), stdin);
- fflush(stdin);
- for (int i = 0; i < strlen(text); i++) {
- for (int j = 0; j < strlen(alph); j++) {
- if (text[i] == alph[j])
- cout << text[i];
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement