fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int a = 3, b = 4, c = 5, i;
  6.  
  7. for(i=0;i<20;i++)
  8. {
  9. std::cout << "[" << a << " " << b << " " << c << "]\n";
  10.  
  11. a += 3;
  12. b += 4;
  13. c += 5;
  14. }
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
[3 4 5]
[6 8 10]
[9 12 15]
[12 16 20]
[15 20 25]
[18 24 30]
[21 28 35]
[24 32 40]
[27 36 45]
[30 40 50]
[33 44 55]
[36 48 60]
[39 52 65]
[42 56 70]
[45 60 75]
[48 64 80]
[51 68 85]
[54 72 90]
[57 76 95]
[60 80 100]