masterm1nd99

suma

Dec 4th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int n,m,i,j,a[100][100],s=0;
  5. scanf("%d%d",&n,&m);
  6. for(i=0;i<n;i++)
  7. {
  8. for(j=0;j<m;j++)
  9. {
  10. scanf("%d",&a[i][j]);
  11. s+=a[i][j];
  12. }
  13. }
  14. printf("%d",s);
  15.  
  16.  
  17. return 0;
  18. }
Add Comment
Please, Sign In to add comment