+ 1

adding array and for

hello i have this code, https://code.sololearn.com/cPBr8lZ1gozE i need to add array and for to that code. my objective is at least 1 if-else, 1 switch-case, 1 for, 1 do-while. array but i cant get where i can put the array and for in that code @_@ help.. variable mean : pil = to choose the menu's hrg = price of menu jml = amount of purchase byr = money paid total = total price : hrg*jml kbl = change money : byr - all all = total price lagi = for while condition

8th Dec 2017, 1:39 PM
Ruuko
Ruuko - avatar
8 ответов
+ 3
I can't help you with that. But i can help you with something else. I can't understand your code, turkish language aside your variable names are bad. You are probably the only one who understands what's happening in this program. Try giving more descriptive names or atlease put comments in your code explaining what those variables do
8th Dec 2017, 1:54 PM
Dextozz
Dextozz - avatar
+ 2
One thing that I find helpful in coding.. is to do things in steps. Block off most of your code in comments and get the first part of it working before moving on. It will also make it clearer to yourself what you need to get working next. good luck!
13th Dec 2017, 8:37 AM
Lysis
Lysis - avatar
0
oh okay i will change the language
8th Dec 2017, 1:57 PM
Ruuko
Ruuko - avatar
0
done
8th Dec 2017, 2:05 PM
Ruuko
Ruuko - avatar
0
done
8th Dec 2017, 4:06 PM
Ruuko
Ruuko - avatar
0
hmm I did not make it in the playground code but in the code block that made it hard to understand sorry about that
8th Dec 2017, 4:32 PM
Ruuko
Ruuko - avatar