Skip to content

Instantly share code, notes, and snippets.

@peter279k
Last active May 24, 2017
Embed
What would you like to do?
TQC+ JAVA
import java.util.Scanner;
public class JPA03 {
public static void main(String[] args) {
int i = 1, j = 1, count = 0;
for (i = 1; i <= 3;i++) { //第一個迴圈,i從1到3
for(j=1;j<=9;j++) {
count += 1;
}
}
System.out.printf("count = %d\n", count);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment