0
When (IF) is terminated by semi- colon why it doesn't execute infinite times
int main() { int x = 2; if(x == 2); x=0; if(x == 3) x++; else x +=2; printf("x= %d", x); return 0; }
3 Respuestas
+ 3
;ends an command and so the command after tze first x is just ; means do nothing
+ 1
hmm yeah you probably did, but still the question has its meaning
0
I guess I mixed loops with conditionals
Thank you😊