Skip to content

Commit

Permalink
fix: example 10
Browse files Browse the repository at this point in the history
  • Loading branch information
liulinboyi committed Mar 16, 2021
1 parent 7644b6d commit 5a8e155
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion demo/hello-world-10.pineapple
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# 求斐波那契数
func Fibonacci($a) {

if($a == 0) {
return 0
}

if ($a <= 2) {
if ($a == 1) {
return 1
}

if($a == 2) {
return 1
}

Expand Down

0 comments on commit 5a8e155

Please sign in to comment.