Answer the question
In order to leave comments, you need to log in
How to make a flowchart in C language?
I can't make a flowchart for the task "Given an integer square matrix. Determine: the minimum among the sums of elements of the diagonals parallel to the main diagonal of the matrix." I understand in theory how to make a flowchart, but the question is that there are a lot of "for" and "if" here, it is also not clear how to enter "k=0; s=0; l=0; l+=a[ i][j]; k++; l=1; l=0; s=s+1; k=0; s1=a[0][5-1]; t1=t2=0t1+=a[i+j] [j]; t2+=a[j][i+j];
Once again-I'm not asking you to make a flowchart, I'm asking how to do it with so many elements, the fact is that before this task I did not go through the topic with arrays and therefore I am a little confused in this topic, here are the parts of my code that I should theoretically enter into the flowchart, but I don’t know how exactly
int main(int argc, char *argv[])
int s,i,j,k,l ,s1,t2,
int a[5][5];
for(i=0;i<5;i++){
for(j=0;j<5;j++){
a[i][j]=rand()%(N_MAX-N_MIN+1)+N_MIN;
for(i=0;i<5;i++){
for(j=0;j<5;j++)
k=0;
s=0;
l=0;
for (i=0; i<5; i++)
for (j=0; j<5; j++)
if (a[i][j]>=0)
if(a[i][j]%2== 0)
l+=a[i][j];
k++;
if (k==5)
l=1
else
l=0;
s=s+1;
k=0;
s1=a[0][5-1]
for(i=1; i<5; i++)
t1=t2=0
for(j=0; j<5-i; j++)
t1+=a[i+j] [j]
t2+=a[j][i+j]
f(t1 if(t2
ps I have to hand it in tomorrow :(((
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question