📜  乘法程序java代码示例

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

代码示例1
int i,k;
            Scanner sc = new Scanner(System.in);
            System.out.println("Enter the Number for the table: ");

            int n = sc.nextInt();
            for (i=1;i<=10;i++){
                 k = n * i;
                //n + "*" + c + " = " + (n*c))
                System.out.println(n + "*"+ i + " = " + k);    
            }