fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {int c,i,n;int b;n=0;b=0;int min[160];n=1;i=0;int k=0; int a[50]={0};
  4. while((c=getchar())!=10){
  5. if(c!=32){a[k]=c;b++;}
  6. else {a[k++]=c;n++;b=0;}
  7.  
  8. printf (" k b n ");
  9. printf ("\n%c %d %d %d %c",a[k],k,b,n,min[b]);}
  10.  
  11.  
  12. }
Success #stdin #stdout 0s 5548KB
stdin
One to thee foodi fromm

stdout
  k b n 
O 0 1 1   k b n 
n 0 2 1 �  k b n 
e 0 3 1   k b n 
 1 0 2 p  k b n 
t 1 1 2   k b n 
o 1 2 2 �  k b n 
 2 0 3 p  k b n 
t 2 1 3   k b n 
h 2 2 3 �  k b n 
e 2 3 3   k b n 
e 2 4 3 )  k b n 
 3 0 4 p  k b n 
f 3 1 4   k b n 
o 3 2 4 �  k b n 
o 3 3 4   k b n 
d 3 4 4 )  k b n 
i 3 5 4   k b n 
 4 0 5 p  k b n 
f 4 1 5   k b n 
r 4 2 5 �  k b n 
o 4 3 5   k b n 
m 4 4 5 )  k b n 
m 4 5 5