1. /*
    2. do while很少用
    3. do{
    4. // ...
    5. }while (true);
    6. */
    7. #include <iostream>
    8. #include <cstdio>
    9. using namespace std;
    10. int main()
    11. {
    12. int x = 100;
    13. while (x < 100){
    14. x++;
    15. }
    16. cout << x << '\n';
    17. int y = 100;
    18. do{
    19. y++;
    20. }while (y < 100);
    21. cout << y << '\n';
    22. return 0;
    23. }