[CODE] /** * * @author hanfeng */ public class test {
/** Creates a new instance of test */ public test() { } public static void main(String [] args){ for(int i=1;i<6;i++){ for(int j=i;j<2*i;j++){ System.out.print(j); } System.out.println(); } }
public class Test{ private int P=5; public static void main(String[] args){ int i,j; for(i=1;i<=5;i++){ for(j=i;j<=2*P-1;j++){ System.out.print(j); } SyStem.out.println(); } }