TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Code Scribbling with Fizz Buzz

18 点作者 pcote超过 9 年前

2 条评论

mathgladiator超过 9 年前
Art for the sake of art.<p>I like doing things in an esoteric way. I wrote fizz Buzz weeks ago without out any literal digits nor any arithmetic operators, also, I outputted Roman numerals.<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10599801" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10599801</a>
tracker1超过 9 年前
<p><pre><code> for(i=1;i&lt;101;i++)console.log((!(i%3)?&#x27;Fizz&#x27;:&#x27;&#x27;)+(!(i%5)?&#x27;Buzz&#x27;:&#x27;&#x27;)||i)</code></pre>