I am trying to open a file and read its content which is:
1234 0.20
1256.7 0.45
345.56 0.29
each line has two set of numbers separated by a space.
I know how to open the file
but I want to use these numbers in calculatuion say the first number is income the second number is tax rate I want to calculate tax amount.
How can I have the program to take the first number and multiply it by the seconfd number and print the result on the screen
than do the same for the secon line.
I tried so many things but I am getting know where so please help