什么是错的代码?即使输入“1”或“2”,while循环也会继续运行。无限,而在scanf函数
#include "stdio.h"
void helper(void);
int main() {
int s;
scanf("%d", &s);
while(s!=1 || s!=2) {
helper();
scanf("%d", &s);
}
return 0;
}
void helper(void) {
printf("Please use 1 or 2 as option");
}