Tabel Perkalian Menggunakan Array
05.00.00ﺑﺴﻢﷲﺍﻠﺮﺤﻤﻦﺍﻠﺮﺤﻴﻢ
public class ArrayPerkalian {
public static void main(String[] args) {
for (int x = 1; x <= 9; x++) {
for (int y = 1; y <= 9; y++) {
if(x*y<=9){
System.out.print(x*y + " |"); }
else {
System.out.print(x*y + " |"); }
}
System.out.println();
}
}
}
0 komentar