2 Respostas
+ 3
Vikash Kumar Tiwari, testing and debugging are important parts of coding - maybe the most important.
You should not just ask 'debug it', but invest sufficient energy in figuring it out yourself.
Only if you absolutely can't, you ask.
Otherwise, how will you learn?
When you ask for help with a code, you should have tried hard enough to tell us what exactly is your problem and what you have tried so far in order to solve it.
+ 1
declare tax as double (instead of int) to avoid warning messages...
double tax;