public class FunctionDemo1 {
public static void main(String[] args) {
System.out.println("请输入一个整数!");
Scanner sc=new Scanner(System.in);
int x=sc.nextInt();
print99(x);
printT(x);
}
public static void print99(int x){
for(int i=1;i<=x;i++){
for(int j=1;j<=i;j++){
System.out.print(j+"*"+i+"="+j*i+"\t");
}
System.out.println();
}
} |
|