![subject](/tpl/images/cats/informatica.png)
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]);
}
}
}
![ansver](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 20.06.2019 18:04
You can use if your cursor is at the end of the word. use if you place the cursor on the left side of the word.
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 06:00
In outlook how can cherie look at the details of an event that appears on the month view of her calendar? check all that apply. by switching to the detail view by switching to the week view by switching to the day view by right-clicking on the event by double-clicking on the event by highlighting the event
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 05:00
In cell b18, enter a formula to calculate the amount budgeted for meals. this amount is based on the daily meal allowance and the total travel days (# of nights+1).
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 10:50
Your friend kayla is starting her own business and asks you whether she should set it up as a p2p network or as a client-server network. list three questions you might ask to kayla decide which network to use and how her answers to those questions would affect your recommendation.
Answers: 2
You know the right answer?
Basicamente en un programa de matrices donde hay que formar una cruz y una diagonal con 1
y ya está...
Questions
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 11.06.2020 23:57
![question](/tpl/images/cats/User.png)
![question](/tpl/images/cats/fizika.png)
Physics, 11.06.2020 23:57
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 11.06.2020 23:57
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 11.06.2020 23:57
![question](/tpl/images/cats/mat.png)
Mathematics, 11.06.2020 23:57
![question](/tpl/images/cats/en.png)
English, 11.06.2020 23:57
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 11.06.2020 23:57
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/User.png)
![question](/tpl/images/cats/mat.png)