完了済 10/9 別解追記
This commit is contained in:
@@ -10,6 +10,11 @@ public class Question6_2 {
|
|||||||
}
|
}
|
||||||
System.out.println(square);
|
System.out.println(square);
|
||||||
|
|
||||||
|
// 1009
|
||||||
|
for ( int i=0 ; i<5 ; i++ ) {
|
||||||
|
System.out.print("\u25A0");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,14 @@ public class Question6_6 {
|
|||||||
System.out.println(square);
|
System.out.println(square);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 1009
|
||||||
|
for (int j=0 ; j<5 ; j++ ) {
|
||||||
|
for ( int i=0 ; i<5 ; i++ ) {
|
||||||
|
System.out.print("\u25A0");
|
||||||
|
}
|
||||||
|
System.out.println("");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,16 @@ public class Question6_7 {
|
|||||||
sb.delete(0,sb.length()); // 追記した文字列をクリアする
|
sb.delete(0,sb.length()); // 追記した文字列をクリアする
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 1009
|
||||||
|
for ( int i=1 ; i<=9 ; i++ ) {
|
||||||
|
for ( int j=1 ; j<=9 ; j++ ) {
|
||||||
|
System.out.print(i*j);
|
||||||
|
if ( j==9 ) { continue; }
|
||||||
|
System.out.print(" ");
|
||||||
|
}
|
||||||
|
System.out.println("");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user