1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| package code;
public class Multiply { public static void main(String[] args) { int i,j; for(i = 1; i < 10; i++) { for(j = 1; j <= i; j++) { System.out.print(j + "*" + i + "=" + i * j + "\t"); } System.out.println(""); } } }
|