大佬们请问为啥我的代码 count 总是1
#include<stdio.h>
int main() {
int num, N,guess,count=0;
scanf_s("%d %d", &num, &N);
for (int i = 1; i <= N; i++) {
scanf_s("%d", &guess);
count++;
if (guess < 0)
break;
if (guess < num) {
printf("Too small\n");
}
else if (guess > num) {
printf("Too big\n");
}
else if (guess = num) {
if (count = 1) {
printf("Bingo!\n");
}
else if (count <= 3)
printf("Lucky You!\n");
else if (count <= N)
printf("Good Guess!\n");
return 0;
}
}
printf("Game Over");
return 0;
}