RosettaCodeData/Task/Longest-string-challenge/C/longest-string-challenge-2.c

5 lines
61 B
C

% printf "a\nbb\nccc\nddd\nee\nf\nggg" | ./a.out
ccc
ddd
ggg