I've been learning C for a few months now in college and exams are coming up so I thought I'd look at some past papers.
I'm trying to get the variable YTH to print properly but at the moment it just displays zeros. If anyone could fix this and explain what is wrong that would be of great help.
The question just asks for the tax to be calculated and that the memory be updated with the new information.

This is the code I have made: income.txt2011b.c