iteration.dart[class]{}-[func]{nestedForLoop}
+iteration.dart/* 双层 for 循环 */
+String nestedForLoop(int n) {
+ String res = "";
+ // 循环 i = 1, 2, ..., n-1, n
+ for (int i = 1; i <= n; i++) {
+ // 循环 j = 1, 2, ..., n-1, n
+ for (int j = 1; j <= n; j++) {
+ res += "($i, $j), ";
+ }
+ }
+ return res;
+}