Computers and Technology, 24.07.2021 06:00 kaciewelkerouwdfa
Basicamente en un programa de matrices donde hay que formar una cruz y una diagonal con 1
y ya está la cruz y las diagonales de 1 (? pero esa parte donde tengo que hacer la mitad de 2 me hace explotar
Alguien me dice que tengo que hacer porfavor
//matriz
#include
#define maxfil 100
#define maxcol 100
void llenar (int [maxfil][maxcol],int, int);
void mostrar (int[][maxcol],int, int);
main()
{ int M[maxfil][maxcol];
int n, m;//filas y columnas reales
n=11;
m=11;
llenar(M, n,m);
mostrar(M, n,m);
}
//construot funcione
void llenar (int X[maxfil][maxcol],int n, int m)
{int i, j;//indice i pra filas y j pra columnas
for(i=0;i
{ for(j=0;j
{X[i][j]=0;
}
}
for(i=0;i
{X[n/2][i]=1;
}
for(i=0;i
{X[i][n/2]=1;
}
for(i=0;i
{for(j=0;j
{if(n==m)
{X[i][i]=1;
}
else
{X[i][i]=0;
}
}
}
for(i=0;i
{X[i][(n-1)-i]=1;
}
}
void mostrar (int X[][maxcol],int n, int m)
{int i, j;//indice i pra filas y j pra columnas
for(i=0;i
{ printf("\n");
for(j=0;j
{printf("%d ",X[i][j]);
}
}
}
Answers: 2
Computers and Technology, 22.06.2019 06:30
Plz 40 points what are raster vectors? a bitmap image a vector file a type of printing press a small projector
Answers: 1
Computers and Technology, 22.06.2019 08:50
Can online classes such as gradpoint track your ip location like if im taking a final and i give somebody else my account and they take the final for me will it show where they are taking the final from? and can this be countered with a vpn
Answers: 1
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
Computers and Technology, 23.06.2019 19:30
2. fluorine and chlorine molecules are blamed fora trapping the sun's energyob forming acid rainoc producing smogod destroying ozone molecules
Answers: 2
Basicamente en un programa de matrices donde hay que formar una cruz y una diagonal con 1
y ya está...
Mathematics, 06.11.2020 17:10
Business, 06.11.2020 17:10
History, 06.11.2020 17:10
Mathematics, 06.11.2020 17:10