和c差不多哈‘
import java.util.Scanner;
public class test
{
public static void main(String[] args)
{
int i;
Scanner zs=new Scanner(System.in);
System.out.print("輸入一個(gè)整數(shù):");
int z=zs.nextInt();
for(i=1;i<=5;i++)
{
int sum=i*z;
System.out.println(i+"*"+z+"="+sum);
}
}
}