I'm supposed to make a square matrix n x n, and get the sum of all border elements. This program is what I came up with, it works well enough, I was just wondering if there was a way to use fewer iterative statements.Code:#include <stdio.h> void main() { int matrix[100][100], n, k, l, bord, bord1, bord2, bord3, bord4; do{ printf("Enter order of matrix between 1 and 100 \n"); scanf("%d",&n); }while(n<1 || n>100); for(k=0;k<n;k++){ printf("Enter values for Row %d\n",k); for(l=0;l<n;l++){ printf("Enter values for row %d col %d\n",k,l); scanf("%d",&matrix[k][l]); } } bord=0; for(k=0;k<1;k++){ for(l=0;l<n;++l){ bord=bord+matrix[k][l]; } } bord1=0; for(k=n-1;k<n;k++){ for(l=0;l<n;++l){ bord1=bord1+matrix[k][l]; } } bord2=0; for(l=0;l<1;l++){ for(k=0;k<n;k++){ bord2=bord2+matrix[k][l]; } } bord3=0; for(l=n-1;l<n;l++){ for(k=0;k<n;k++){ bord3=bord3+matrix[k][l]; } } bord4=0; bord4=bord+bord1+bord2+bord3; printf("The sum of the border elements are: %d\n",bord4); }