fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int t[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
  6.  
  7. for(unsigned int x=0; x < 10; x++) {
  8. if(x == (10 - 1)) cout << t[x];
  9. else cout << t[x] << " ";
  10. }
  11. cout << "heyhey";
  12. }
Success #stdin #stdout 0.01s 2724KB
stdin
Standard input is empty
stdout
0 1 2 3 4 5 6 7 8 9heyhey