import javax.swing.*;
public class MultiplicationTest extends JFrame. {
public static void main(String args[]){
int sum; /*==和==*/
/*==i控制乘数,j控制被乘数==*/
for(int i = 1 ; i <= 9 ; i ++){
for(int j = 1; j <= i; j ++){
sum = i * j ;
System.out.print(j + "*" + i + "=" + sum + " ");
}
System.out.println();
}
}
}
public class MultiplicationTest extends JFrame. {
public static void main(String args[]){
int sum; /*==和==*/
/*==i控制乘数,j控制被乘数==*/
for(int i = 1 ; i <= 9 ; i ++){
for(int j = 1; j <= i; j ++){
sum = i * j ;
System.out.print(j + "*" + i + "=" + sum + " ");
}
System.out.println();
}
}
}
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10356975/viewspace-680333/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10356975/viewspace-680333/