image.png

    1. #include <stdio.h>
    2. int main()
    3. {
    4. int a = 20;
    5. while (a > 10)
    6. {
    7. scanf("%d", &a);
    8. printf("a = %d\n", a);
    9. }
    10. return 0;
    11. }
    1. #include <stdio.h>
    2. int main()
    3. {
    4. int a = 1;
    5. while (false) // false 和 0 不进入循环
    6. {
    7. a++;
    8. printf("a = %d\n", a);
    9. }
    10. return 0;
    11. }