fork(4) download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. for( struct {int i; double j;} v = {0, 3.0}; v.i < 10; v.i++, v.j+=0.1)
  6. std::cout << v.i << "," << v.j << std::endl;
  7. }
Success #stdin #stdout 0.02s 2724KB
stdin
Standard input is empty
stdout
0,3
1,3.1
2,3.2
3,3.3
4,3.4
5,3.5
6,3.6
7,3.7
8,3.8
9,3.9