+ 2
Ball Park Code
I donât get the expected result, please check the code and give your suggestions. https://code.sololearn.com/c3VU41ebIebQ/?ref=app
6 Answers
+ 3
Yes. About code.
Some time it confuses others, what changed made from where to where.. So better to make new post instead. Ok. Not a problem there. Let it be now.
+ 3
order == "Nachos"
Array with string literal can't work as you expecting .. Use strcmp() function instead like
( strcmp ( order, "Nachos") == 0 )
include <string.h> header file.
and there is no need & in scanf("%s", &order);
just write scanf("%s", order);
+ 2
Your welcome.. Wakil Ahmad Hamidi
Try not to change original question next time. It may confuse sometimes other readers...
+ 1
Jayakrishnađźđł
Thanks a lot
I did it
+ 1
Jayakrishnađźđł
Which changes?
Do you mean in the code?
I didnât make any changes there, but improved the code only
+ 1
Jayakrishnađźđł
Right, got it đ