切换到宽版
  • 5289阅读
  • 0回复

求助 简单 pascal 问题 [复制链接]

上一主题 下一主题
离线too58451230
 
只看楼主 倒序阅读 0 发表于: 2008-03-12
问:
There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2).

Print the word "yes" if 3 divide evenly into F(n).
Print the word "no" if not.

快速回复
限100 字节
 
上一个 下一个