TQC+ JAVA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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