Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 25e6c3c

Browse files
Update scrip.js
1 parent fcef73b commit 25e6c3c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎scrip.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,11 @@ console.log("The number of " + number + " factorial is = " +fact);
464464
// Example : 0,1,1,2,3,5,8,6,21
465465
// var a = 0;
466466
// var b = 1;
467-
// for(let i = 0; i <= 10 ; i++) { // change the num 10 as your desaire
468-
// var temp = a + b ;
469-
// a= b;
470-
// b = temp;
471-
// }
467+
for(let i = 0; i <= 10 ; i++) { // change the num 10 as your desaire
468+
var temp = a + b ;
469+
a= b;
470+
b = temp;
471+
}
472472
// You also made this program from while loop do while loop
473473

474474

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /