Advertisement
Guest User

stroke 1 ++

a guest
Jan 24th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     char str[256];
  8.     cout << "Wwedi stroku :";
  9.     cin.getline (str,256) ;
  10.     int i=0;
  11.     for(int a = 0; a < 256; a++)
  12. {
  13.     if(str[i]>='A'&&str[i]<='z')
  14.           {
  15.             i++;
  16.           }
  17. }
  18.     cout << "Slow w stroke :" << i;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement