public class JavaApplication { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here int i, j; for(i = 1; i <= 9; i++) for(j = 1; j <= i; j++) { if(j == i) System.out.print(i+" * "+j+" = "+i*j+"\n"); else System.out.print(i+" * "+j+" = "+i*j+","); } } }
Java输出九九乘法表
猜你喜欢
转载自blog.csdn.net/hackq_sxj/article/details/78242571
今日推荐
周排行