fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. //Realized my old way was stupid.
  6. int a = 0, b = 0, c = 0, i;
  7.  
  8. for(i=0;i<20;i++)
  9. {
  10. a += 3;
  11. b += 4;
  12. c += 5;
  13.  
  14. std::cout << "[" << a << " " << b << " " << c << "]\n";
  15. }
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0s 3340KB
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]