[Solved] Stuck in infinite loop C#


The problem is your use of while loops.

while(note != 1)

There is nothing in the body of those loops that change that condition. So everytime the loop goes “okay… is note not equal to 1?”.. that condition is always true. So the loop executes again.

solved Stuck in infinite loop C#