[Solved] Break and Continue (C)


Change the condition in your while loop to use == not =. Right now you are making an assignment and not comparing the two meaning the first chars will always be the same and give a score of 1. You can then remove the if statement from inside the loop.

The assignment asks you to use a for loop and not a while. If you just move I into the for loop and fill out the rest, along with moving the increment to after the != check it would work.

solved Break and Continue (C)