fork(1) download
  1. #include <stdio.h>
  2.  
  3. void func_matrice()
  4. {
  5. int input[3][4];
  6. for(int i=0;i<3;i++)
  7. {
  8. for(int j=0;j<4;j++)
  9. {
  10. printf("%d",input[i][j]);
  11. }
  12. printf("\n");
  13. }
  14. }
  15. int main()
  16. {
  17. int array[3][4];
  18. for(int i=0;i<3;i++)
  19. {
  20. for(int j=0;j<4;j++)
  21. {
  22. array[i][j]=0;
  23. }
  24. }
  25. for(int i=0;i<3;i++)
  26. {
  27. for(int j=0;j<4;j++)
  28. {
  29. scanf("%d",&array[i][j]);
  30. }
  31. }
  32. func_matrice();
  33. return 0;
  34. }
Success #stdin #stdout 0s 4500KB
stdin
0
1
2
3
4
5
6
7
8
9
10
11

stdout
0000
11538501000
17383920243276741262878411164