fork(1) download
  1. #include <stdio.h>
  2. int main(void)
  3. { int c,i,b,n,min=1;
  4. int a[50]={0};
  5. while((c!=10))
  6. { if(c==32)c=0;
  7. else
  8. { i=0 ; while (c!=32&&c!=10)
  9. { a[i++]=c; c=getchar () ; }
  10.  
  11. if(i<3 ){
  12. for(b=0;b<i;b++)
  13.  
  14. printf ("%c-%d-%d\n", a[b],b,i);
  15. printf ( " ") ;
  16. }}}
  17. }
  18.  
Success #stdin #stdout 0s 5428KB
stdin
SSSSS GG JJJ
stdout
Standard output is empty