#include <stdio.h>
int main () {
float x = 30;
if (x < 9) {
printf("A");
} else if (10 <= x <= 20) {
printf("B");
} else if (21 <= x <= 29.9) {
printf("C");
} else {
printf("Hello");
}
return 0;
}
My expected output is "Hello" since the value of x is 30 and it does not satisfy in any condition. However, the program's output is "B". I cannot figure out why.