so the program i wrote is supposed to read from a file a set of numbers and see if in every line there is a number who is a double of the other and give out how many numbers are doubles of each other in the output. by the way it should stop if the line contains only (-1) and every line ends with a zero which is not considered part of the list.
my sample file contains the following numbers:
1 4 3 2 9 7 18 22 0
2 4 8 10 0
7 5 11 13 1 3 0
-1
