fork download
  1. #include <math.h>
  2. #include <stdio.h>
  3.  
  4. int A[3][2]={ {1,2}, {4,9}, {10,3} }; int X[]={7,1,6};
  5.  
  6. int main(int argc, char const *argv[]) {
  7. int summ=0;
  8. for (int i=0;i<3;i++)
  9. {
  10. for(int j=0;j<2;j++)
  11. {
  12. summ+=A[i][j];
  13. }
  14. }
  15.  
  16. printf("%d \n", summ);
  17. return 0;
  18. }
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
29