Question
#include #include using namespace std; int main() { int Matrix [4][4], r=4, c=4, i, j,k,sumc=0, sumr=0,sumd1=0,sumd2=0,sumd; for(i=0 ; i for (j=0 ; j if (k%2!=0)
#include
for(i=0 ; i for (j=0 ; j if (k%2!=0) { Matrix[i][j]=k; cout for(i=0 ; i cout for(i=0 ; i cout for(i=0 ; i for(i=0 ; i sumd=sumd1+sumd2; cout cout for(i=0 ; i for(i=0 ; i for(i=0 ; i cout for(i=0 ; i cout for(i=0 ; i for(i=0 ; i sumd=sumd1+sumd2; cout return 0; }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started