fork(1) download
  1. #include <stdio.h>
  2.  
  3. int i = 0;
  4. int main()
  5. {
  6. char array[1000001] ={0, } ;
  7. int cnt = 0;
  8.  
  9. gets(array);
  10.  
  11. for(i = 0; array[i] != '\0'; i++)
  12. {
  13. if((array[i]> 'a' && array[i] < 'z') || (array[i]> 'A' && array[i] < 'Z') )
  14. {
  15. cnt ++;
  16.  
  17. while(array[i] != ' ')
  18. {
  19. i++ ;
  20. }
  21.  
  22. }
  23. }
  24. printf("%d",cnt);
  25. return 0;
  26. }
Runtime error #stdin #stdout 0s 4448KB
stdin
The Curious Case of Benjamin Button
stdout
Standard output is empty