fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. unsigned x = 0;
  6. if(std::cin >> x)
  7. {
  8. for(unsigned i = 0; i < x; ++i)
  9. {
  10. std::cout << "Hello, World!" << std::endl;
  11. }
  12. }
  13. }
  14.  
Success #stdin #stdout 0s 3344KB
stdin
7
stdout
Hello, World!
Hello, World!
Hello, World!
Hello, World!
Hello, World!
Hello, World!
Hello, World!