fork download
  1. // A simple C++ program to print numbers from 1 to 5
  2.  
  3. #include <iostream>
  4. using namespace std;
  5.  
  6. int main() {
  7. for (int i = 1; i <= 5; i++) {
  8. cout << i << endl;
  9. }
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5308KB
stdin
Standard input is empty
stdout
1
2
3
4
5