main.cpp 282 B

1234567891011121314151617
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. cout << "Hello world!" << endl;
  6. int iteration(0);
  7. while (1)
  8. {
  9. iteration++;
  10. cout << "Hello world! x " << iteration << endl;
  11. if (iteration > 1000)
  12. break;
  13. }
  14. return 0;
  15. }