Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- int[][] tab = {
- {1, 0, 0, 0, 0},
- {0, 1, 0, 0},
- {0, 0, 1}
- };
- int[] tmp = new int[12];
- int t = 0;
- for (int i =0;i< tab.length;i++){
- for (int j = 0; j < tab[i].length;j++){
- tmp[t] = tab[i][j];
- t++;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement