Guest User

Untitled

a guest
Dec 8th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     char str[255] = "";
  8.     cout << "Enter string:";
  9.     cin >> str;
  10.     int a = 0;
  11.     for (int i = 0; i<255; i++)
  12.     {
  13.         if ((str[i]>'g') && (str[i]<'o'))a++;
  14.        
  15.     }
  16.     cout << "Kol-vo simvolov = " << a  << endl;
  17.     getwchar();
  18.     return 0;
  19. }
Add Comment
Please, Sign In to add comment