Debug it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
15th Mar 2021, 11:32 PM
Vikash Kumar Tiwari
Vikash Kumar Tiwari - avatar
2 Answers
+ 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.
15th Mar 2021, 11:59 PM
HonFu
HonFu - avatar
+ 1
declare tax as double (instead of int) to avoid warning messages... double tax;
15th Mar 2021, 11:41 PM
visph
visph - avatar