Matrice
java 19
-
java 19 -
java 19 -
Bonjour,
svp aidez moi je veux un algo qui perme de remplire une matricede 10 lignes et 10 colonnes
de 1 a 10 sur chaque ligne et chaque colonne
les chiffres impaire aprtir de 1
la premier ligne de 1 a 10
1er colonne de 1 a 10
et leur miltiplication dans les cellules de millieu
svp aidez moi je veux un algo qui perme de remplire une matricede 10 lignes et 10 colonnes
de 1 a 10 sur chaque ligne et chaque colonne
les chiffres impaire aprtir de 1
la premier ligne de 1 a 10
1er colonne de 1 a 10
et leur miltiplication dans les cellules de millieu
Configuration: Windows Vista Internet Explorer 7.0
A voir également:
- Matrice
- Multiplication de matrice ✓ - <a href="https://forums.commentcamarche.net/forum/python-264">Forum Python</a>
- Vous ne pouvez pas modifier une partie de matrice ✓ - <a href="https://forums.commentcamarche.net/forum/excel-145">Forum Excel</a>
- Calculatrice matrice - Télécharger - Calcul & Conversion
- Matrice de flux - <a href="https://forums.commentcamarche.net/forum/reseau-5">Forum Réseau</a>
- Problème constructeur matrice ✓ - <a href="https://forums.commentcamarche.net/forum/java-265">Forum Java</a>
3 réponses
jai 4 matrice en langue java
si quelquún a besoin de
1)public class cologne {
public static void main(String[] args) {
int t[][]=new int[11][11];
int i,j;
int l=1;
for ( i = 1; i <11; i++) {
for (j = 1; j <11; j++) {
t[i][j]=l++;
System.out.print(" | "+t[i][j]);
}
System.out.println( );
}
}
}
2)public class impaire {
public static void main(String[] args) {
int t[][]=new int[11][11];
int i,j;
int l=1;
for ( i = 1; i <11; i++) {
for (j = 1; j <11; j++) {
t[i][j]=l++;
l++;
System.out.print(" | "+t[i][j]);
}
System.out.println( );
}
}
}
3)public class lignes {
public static void main(String[] args) {
int t[][]=new int [11][11];
int i,j;
for ( i = 0; i <=10; i++) {
t[i][i]=i;
}
for ( j = 1; j <=9; j++) {
for ( i = 1; i <=10; i++) {
System.out.print(" | " +t[i][i]);
}
System.out.println(" ");
}
}
}
4)public class multiplication {
public static void main(String[] args) {
int t[][]=new int[11][11];
int i,j;
for ( i = 1; i <11; i++) {
for ( j = 1; j <11; j++) {
t[i][j]=j*i;
System.out.print(" | "+t[i][j]);
}
System.out.println( );
}
}
}
et pour moi jai besoin des matrice un ou il ya les 100 premiers chiffres premiers
le dexieme de 1 a 100 en helica
et le dernier de 1 a 100 avec transposition de matrice
si quelquún a besoin de
1)public class cologne {
public static void main(String[] args) {
int t[][]=new int[11][11];
int i,j;
int l=1;
for ( i = 1; i <11; i++) {
for (j = 1; j <11; j++) {
t[i][j]=l++;
System.out.print(" | "+t[i][j]);
}
System.out.println( );
}
}
}
2)public class impaire {
public static void main(String[] args) {
int t[][]=new int[11][11];
int i,j;
int l=1;
for ( i = 1; i <11; i++) {
for (j = 1; j <11; j++) {
t[i][j]=l++;
l++;
System.out.print(" | "+t[i][j]);
}
System.out.println( );
}
}
}
3)public class lignes {
public static void main(String[] args) {
int t[][]=new int [11][11];
int i,j;
for ( i = 0; i <=10; i++) {
t[i][i]=i;
}
for ( j = 1; j <=9; j++) {
for ( i = 1; i <=10; i++) {
System.out.print(" | " +t[i][i]);
}
System.out.println(" ");
}
}
}
4)public class multiplication {
public static void main(String[] args) {
int t[][]=new int[11][11];
int i,j;
for ( i = 1; i <11; i++) {
for ( j = 1; j <11; j++) {
t[i][j]=j*i;
System.out.print(" | "+t[i][j]);
}
System.out.println( );
}
}
}
et pour moi jai besoin des matrice un ou il ya les 100 premiers chiffres premiers
le dexieme de 1 a 100 en helica
et le dernier de 1 a 100 avec transposition de matrice