How can I stop an input and start an output after the input of two 0's?If the input is for example:
1 3
2 4
0 0
I want to stop the input after that 0. I tried to solve this problems with a while loop but I get a runtime error.
For example, if I want to add two numbers the output should be:
4
6
It might have to be varied depending how your input actually works, ie 2 numbers at a time or 6 ... or even if it is only one zero or two zeroes that stop further input. Only you know so far.