scanf problem

Hi,
I need to input less than 10 integers each line, put them into int array,and repeat until first -1 is found.
ex:
11 23 32 12
1 2 3 4
2 8 9
-1

Anyone knows how to use "scanf" to read this format?

Thank you
i guess you should do something with your program not with scanf. like:

1. declare 9 arrays of ints
2. do input to the arrays while the input is > 0

i guess just that
I found the solution. Thanks for the hint.
Topic archived. No new replies allowed.