Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- char str[255] = "";
- cout << "Enter string:";
- cin >> str;
- int a = 0;
- for (int i = 0; i<255; i++)
- {
- if ((str[i]>'g') && (str[i]<'o'))a++;
- }
- cout << "Kol-vo simvolov = " << a << endl;
- getwchar();
- return 0;
- }
Add Comment
Please, Sign In to add comment