fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i,j,k=0,x=4,y=3;
  6. for(i=1; i<=x; i++)
  7. {
  8. for(j=1; j<=y; j++)
  9. {
  10. k=k+1;
  11. cout<<k;
  12. }
  13. k=k-2;
  14. cout<<endl;
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 15224KB
stdin
Standard input is empty
stdout
123
234
345
456