fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main ()
  6. {
  7. int i, j;
  8.  
  9. for(i=0; i<=4; i++) {
  10.  
  11. cout <<"\n";
  12.  
  13. for(j=1; j <=4; j++) {
  14.  
  15. cout << i+j<<"\t";
  16.  
  17. }
  18.  
  19.  
  20.  
  21. }
  22.  
  23. return 0;
  24. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
1	2	3	4	
2	3	4	5	
3	4	5	6	
4	5	6	7	
5	6	7	8