对不起,如果以前曾经问过这个问题,或者是一个愚蠢的问题,但我是网站和C的新手.所以,当我运行这个代码时,当我输入答案时,任何答案,无论是对还是错,它说什么时候应该说if语句.这是代码:
#include <stdio.h>
int main()
{
int x;
printf("1+1=");
scanf("%d", &x);
if("x==2"){
printf("Watch out, we got a genius over here!");
}
else {
printf("I don't even know what to say to this...");
}
return 0;
}
Run Code Online (Sandbox Code Playgroud) c ×1