File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
docs/1-trial-session/08-loop Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- let n = 89 ; //任意の整数
1+ const n = 89 ; //任意の整数
22
33let isPrime = true ;
44if ( n <= 1 ) {
Original file line number Diff line number Diff line change 1- let n = 57 ; // 任意の整数
1+ const n = 57 ; // 任意の整数
22
33let isPrime = true ;
44if ( n <= 1 ) {
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ document.write(product);
248248変数の、最後に代入した値のみを保持する性質を利用します。
249249
250250``` javascript
251- let n = 57 ; // 任意の整数
251+ const n = 57 ; // 任意の整数
252252
253253let isPrime = true ;
254254if (n <= 1 ) {
@@ -276,7 +276,7 @@ if (isPrime) {
276276前項で割ったあまりが0でないこととの ` && ` (AND) をとることで帰納的に求めることもできます。
277277
278278``` javascript
279- let n = 89 ; // 任意の整数
279+ const n = 89 ; // 任意の整数
280280
281281let isPrime = true ;
282282if (n <= 1 ) {
You can’t perform that action at this time.
0 commit comments