fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. for (int q=0; q<10; ++q)
  8. {
  9. for (int w=0; ; ++w)
  10. {
  11. cout << (char)(q ? q+'0' : ' ') << (char)(w+'0');
  12. if (q == w) break;
  13. cout << ' ';
  14. }
  15.  
  16. cout << endl;
  17. }
  18. }
Success #stdin #stdout 0s 5476KB
stdin
Standard input is empty
stdout
 0
10 11
20 21 22
30 31 32 33
40 41 42 43 44
50 51 52 53 54 55
60 61 62 63 64 65 66
70 71 72 73 74 75 76 77
80 81 82 83 84 85 86 87 88
90 91 92 93 94 95 96 97 98 99