fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int t,i, num[5][3];
  7. /* загрузка чисел */
  8. for(t=0; t<5; ++t)
  9. for (i=0; i<3; ++i)
  10. num[t][i] = (t*3)+i+1;
  11.  
  12. /* вывод чисел */
  13. for (t=0; t<5; ++t)
  14. {
  15. for (i=0; i<3; ++i)
  16. cout<<num[t][i];
  17. cout<<endl;
  18. }
  19. system ("pause");
  20. return 0;
  21. }
Success #stdin #stdout #stderr 0s 3296KB
stdin
Standard input is empty
stdout
123
456
789
101112
131415
stderr
sh: pause: not found