for (int R=0;R<M;R++)
{ int sum=0;
for(int C=0;C<N;C++)
cout<<(MAT[R][C]; // statement 1
Sum +=MAT[R][C]; //statement 2
}


how many times statement 1 and statement2 will be executed ?