Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h> // библиотека для ввода и вывода русских букв
- using namespace std;
- int main()
- {
- char str[256];
- cin.getline(str, 256);
- int vCount = 0, cCount = 0;
- for (int i = 0; str[i] != '\0'; i++)
- {
- if (str[i] >= 48 && str[i] <= 57)
- {
- cout << str[i];
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement