175k views
2 votes
Need help with this what am I doing wrong.

Need help with this what am I doing wrong.-example-1

1 Answer

2 votes

Answer:

You program was good until line 8 where it suddenly appear you let your young sibling write the code for you, why did you put a comma in there? and wth is "ind"?

Further more in line 9, the +eggs+ don't go inside quotation marks, because it's a variable, not a literal string value. And again with that silly "ind" just to confuse you with the "int" type of variable.

You can only do this: int a, b, c; (and that's not recommended)
You cannot do int a = 2, b = 3, c = 4;
Not only the languge doesn't allow but that is extremelly dirty way of writing. Write line by line, don't rush and try to jam everything together.

int a = 2;

int b = 3;

int c = 4;

You have plenty of space, use it.

Step-by-step explanation:

User Abbas Bagheri
by
8.2k points