Advertisement
Nayeemzaman

Untitled

Nov 26th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int N[5][5],i,j,sum=0,r,c;
  5. for(r=0;r<4;r++)
  6. {
  7. for(c=0;c<4;c++)
  8. {
  9. scanf("%d",&N[r][c]);
  10. }
  11. }
  12. sum=(N[1][2]+N[2][4]+N[4][3]+N[1][3]);
  13. printf("%d",sum);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement