I made this program that calculates tax for a range of salaries based on user input. Everything is working fine except for the fact that i cant seem to find a way to make the application ignore the last 3 printf's and just print an error message if the user enters a negative value. I dont want to display the last 3 printf's if the user enters a negative number, instead i want the application to just display "Error: you have entered a negative number" or something of the sort. I'm using visual studio as my compiler, and this is a C application. Help plz. And also please go easy on me its for my programming class in which we are still doing very basic stuff.