Advertisement
Advertisement

新足迹

 找回密码
 注册
新足迹 门户 IT专业论坛 查看内容

程序员面试题(所有语言)

2011-5-10 19:24| 发布者: kr2000 | 查看: 6187| 原文链接

Write function which:
* loops 100 times
* keeps count using the variable "x"
* is a recursive function
* "x" initially equals 0
* "x" increments by 3 each loop
* prints "eek" for every 2nd loop
* prints "eep" for every 13th loop
* prints "yikes" on the 17th "eek"

最近面了几个,这个题目竟然出现了2次,发上来分享一下
Advertisement
Advertisement


Advertisement
Advertisement
返回顶部