程序
public class MutiplicationFormulas {
public static void main(String[] args) {
mutipliy();
}
/**
* 九九乘法口诀
*/
public static void mutipliy(){
for (int i=;i<=;i++){
for(int j=;j<=i;j++){
Systemoutprint(i+×+j+=+(i*j)+ );
}
Systemoutprintln();
}
}
}
public class MutiplicationFormulas {
public static void main(String[] args) {
mutipliy();
}
/**
* 九九乘法口诀
*/
public static void mutipliy(){
for (int i=;i<=;i++){
for(int j=;j<=i;j++){
Systemoutprint(i+×+j+=+(i*j)+ );
}
Systemoutprintln();
}
}
}
结果
?
×=
×= ×=
×= ×= ×=
×= ×= ×= ×=
×= ×= ×= ×= ×=
×= ×= ×= ×= ×= ×=
×= ×= ×= ×= ×= ×= ×=
×= ×= ×= ×= ×= ×= ×= ×=
×= ×= ×= ×= ×= ×= ×= ×= ×=