Advertisement
Semior001

Untitled

Dec 14th, 2016
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <stdio.h>
  3. #include <conio.h>
  4.  
  5. char s[256];
  6. int count;
  7.  
  8. int _tmain(int argc, _TCHAR* argv[]){
  9.     freopen("a.in","r",stdin);
  10.     while(scanf("%s",s) == 1){
  11.         if(strlen(s) <= 4){
  12.             count++;
  13.         }
  14.     }
  15.     printf("%d\n", count);
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement