0
Why the error occurred ??
https://code.sololearn.com/ccUDQjJNBhM1/?ref=app it's a program that first takes .. how many items you have 'n' then takes the cost per kg then add it to array via variable x.. And finally shows sum.. And yeah of coursely please teach me how to increase it's readability
3 odpowiedzi
0
Man, it's simply. Delete x *=0. You can't do this.
0
GDSHNIK Why??
Can't I set a variable value to 0??
0
You should. Conpiler think and I, that all int are empty, and he CAN'T do any operations.