java 99

package sj.night;

public class NNCF {
public static void main(String[] args) {
int lgw = 9;
for (int i = 1; i <= lgw; i++) {
for (int j = 1; j < i+1 ; j++) {
System.out.print(j+" * "+i+" = "+i*j+" ");
if(j==i){System.out.println();}
}
}
}
}

你可能感兴趣的:(Java,java)