/*バグ修正版*/ #include main() { int x=99;/*型宣言と同時に、値代入*/ while((x%13)!=0){ printf("In Loop (1)\n"); printf("Input (int)x: ");/*追加*/ scanf("%d",&x); /*追加*/ while((x%5)!=0){ printf("\t In Loop (2)\n"); printf("\t Input (int)x: "); scanf("%d",&x); } } printf("Out Loop, x=%d\n", x); }