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.  
  12. for(j=1; j <=4; j++) {
  13.  
  14. cout << i+j<<"\t";
  15.  
  16. }
  17.  
  18. cout <<"\n";
  19.  
  20. }
  21.  
  22. return 0;
  23. }
Success #stdin #stdout 0s 3296KB
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