fork download
  1. #include <stdio.h>
  2.  
  3. int main(void){
  4.  
  5. int a,i,b;
  6.  
  7. a=0;
  8. b=0;
  9. for(i=0;i<10;i++){
  10. a+=i;
  11. b=b+i;
  12. printf("%d %d\n",a,b);
  13. }
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5308KB
stdin
Standard input is empty
stdout
0  0
1  1
3  3
6  6
10  10
15  15
21  21
28  28
36  36
45  45