0

May i know what's the problem with my C code? When i input 7, it's supposed to output "Broke Even" but i get "Profit"

Hovercraft https://code.sololearn.com/cue8vrKLYiCt/?ref=app

6th Feb 2020, 4:34 AM
Adi Safwan
Adi Safwan - avatar
2 Respostas
+ 1
No, you have not used the input variable sales in your calculations. and line 17 you try to use total_cost, but in line 12 you have not initialize it (means assign a value to it).
6th Feb 2020, 5:02 AM
Gordon
Gordon - avatar
0
Alright thank you for the answer😁
9th Feb 2020, 12:31 AM
Adi Safwan
Adi Safwan - avatar