I am trying to read from a file with multiple lines and then add the numbers in columns. However, I struggle to separate numbers into int variables from same lines so that I could add them eventually.
Basically, I would like to know how to read from a file and sum the columns below:
11 33
22 2
33 1
So that I would get 66 and 36