/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main
(String[] args
){ int[] vetA = {1,2,3,4,5};
int[] vetB = {1,2,3,4,5};
int[][] mat = new int[5][5];
for(int i = 0; i < vetA.length;i++){
for(int j = 0; j < vetB.length; j++){
mat[i][j] = vetA[i] * vetB[j];
}
}
for(int i = 0; i < mat[0].length; i++){
for(int j = 0; j < mat.length;j++ ){
System.
out.
print(mat
[i
][j
] + " "); }
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCQlwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKXsKCQlpbnRbXSB2ZXRBID0gezEsMiwzLDQsNX07CgkJaW50W10gdmV0QiA9IHsxLDIsMyw0LDV9OwoJCWludFtdW10gbWF0ID0gIG5ldyBpbnRbNV1bNV07CgkJCgkJZm9yKGludCBpID0gMDsgaSA8IHZldEEubGVuZ3RoO2krKyl7CgkJCWZvcihpbnQgaiA9IDA7IGogPCB2ZXRCLmxlbmd0aDsgaisrKXsKCQkJCW1hdFtpXVtqXSA9IHZldEFbaV0gKiB2ZXRCW2pdOwogCQkJfQoJCX0KCQkKCQlmb3IoaW50IGkgPSAwOyBpIDwgbWF0WzBdLmxlbmd0aDsgaSsrKXsKCQkJZm9yKGludCBqID0gMDsgaiA8IG1hdC5sZW5ndGg7aisrICl7CgkJCQlTeXN0ZW0ub3V0LnByaW50KG1hdFtpXVtqXSArICIgIik7CgkJCX0KCQkJU3lzdGVtLm91dC5wcmludGxuKCk7CgkJfQoJfQp9