Hello I need help figuring out how to write a loop program that behaves a certain way, I have been beating my head off of walls trying to figure this out and it is probaby so easy..
This is the expected behaviour:
$ ./a.out
Enter some text on 1 or more lines followed by &.
1 25
cat
0g 6&
there were 9 (non-whitespace) characters before the &
5 of them were digits
&