---
# System prepended metadata

title: 'Java 學習筆記 - 2-4: 九九乘法表'
tags: [Java 學習筆記]

---

###### tags: `Java 學習筆記`
# Java 學習筆記 - 2-4: 九九乘法表
```java=
public class MainClass {
    public static void main(String[] args) {
        for (int i = 1; i < 10; i++) {
            for (int k = 1; k < 10; k++) {
                int n = i * k;
                System.out.print(i + " * " + k + " = "+ n + "\t");
            }
            System.out.println();
        }
    }
}
```
![](https://i.imgur.com/N3hWfX3.png)
