摘要:
In Fibonacci sequence, the first and second value is 0 and 1, and all the other values will be calculated based on the previous two values. For exampl 阅读全文
posted @ 2023-06-26 14:51
Oops!#
阅读(19)
评论(0)
推荐(0)
摘要:
elow is my solution to printing the lyrics to 99 Bottles of Beer in JavaScript: function beerSong() { var bottles; var bottlesLeft; for (i = 99; i >= 阅读全文
posted @ 2023-06-26 14:35
Oops!#
阅读(25)
评论(0)
推荐(0)
摘要:
We are going to write a function called fizzbuzz that will accept no arguments. The goal of this function is to print out all numbers from 1 to 100 bu 阅读全文
posted @ 2023-06-26 14:17
Oops!#
阅读(26)
评论(0)
推荐(0)
摘要:
A year is leap year if following conditions are satisfied: Year is multiple of 400. Year is multiple of 4 and not multiple of 100. Approach: Get the v 阅读全文
posted @ 2023-06-26 10:20
Oops!#
阅读(13)
评论(0)
推荐(0)