+ 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
8 Respuestas
+ 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
+ 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!
0
oh okay i will change the language
0
done
0
done
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