📜  java代码示例中使用while循环的乘法表

📅  最后修改于: 2022-03-11 14:52:04.297000             🧑  作者: Mango

代码示例1
public class MultiplicationTable {

    public static void main(String[] args) {

        int num = 9, i = 1;
        while(i <= 10)
        {
            System.out.printf("%d * %d = %d \n", num, i, num * i);
            i++;
        }
    }
}