Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. int lignes=4,col=5;
  2. String[][] tab= new String[lignes][col];
  3. for (int i=0;i<lignes;++i) {
  4. for(int j=0;j<col;++j) {
  5. //////tab[i][j]= (j)*lignes+i;
  6. tab[i][j]=""+i+"."+j;
  7. System.out.print(tab[i][j]+" ");
  8. }System.out.println();
  9. } int lignes=4,col=5;
  10. String[][] tab= new String[lignes][col];
  11. for (int i=0;i<lignes;++i) {
  12. for(int j=0;j<col;++j) {
  13. //////tab[i][j]= (j)*lignes+i;
  14. tab[i][j]=""+i+"."+j;
  15. System.out.print(tab[i][j]+" ");
  16. }System.out.println();
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement