int sum,i,j; for (i=1;i<=9;i++){ for(j=1;j<=i;j++){ sum=j*i; System.out.print("\t"+j+"*"+i+"="+sum); } System.out.println(); }