Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Multiplication Tables

int [][] multiplication = new int [10][10];
int r;
int c;

for (r = 0; r < 10; r++) {
    for (c = 0; c < 10; c++) {
        multiplication [r] [c] = (r + 1) * (c + 1);
    }
}

for (r = 9; r >= 0; r--) {
    for (c = 9; c >= 0; c--) {
        System.out.print(multiplication [r] [c]);
        System.out.print("\t");
    }
    System.out.print("\n");
}

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.