Nayeemzaman

Bachao!!!

Nov 26th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 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. }
Add Comment
Please, Sign In to add comment