In my code below I am trying to fscanf decimal numbers from the input file. When I first tested the code without the if functions it worked fine and the count only took one