Tax on a given amount -- C program