First, use "paste as text" when you paste code, then it looks like this


j = 0;
k = 0;

coinCount = 2; // previously prompted

for (i = 0; i < coinCount; i++) {
...