with logic errors, the program will run but the output will be wrong.

0
210

with logic errors, the program will run but the output will be wrong.