我想了解这段代码的输出,特别是输出的最后2行(第4和5行)。
#include <stdio.h>
#include <stdlib.h>
int main()
{
double x = 2.1;
while (x * x <= 50) {
switch ((int) x) {
case 6:
x--;
printf("case 6,x= %f\n ",x);
case 5:
printf("case 5,x=%f\n ",x);
case 4:
printf("case 4,x);
break;
default:
printf("something else,x);
}
x +=2;
}
return 0;
}