{"author_url":"https://blog.hatena.ne.jp/rahaema/","blog_title":"Mae\u5411\u304d\u306a\u30d6\u30ed\u30b0","width":"100%","version":"1.0","type":"rich","title":"11. \u30eb\u30fc\u30d7\u3068\u518d\u5e30","author_name":"rahaema","height":"190","published":"2006-06-16 00:00:02","categories":["elisp"],"provider_name":"Hatena Blog","blog_url":"https://maehrm.hatenablog.com/","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmaehrm.hatenablog.com%2Fentry%2F20060616%2Fp3\" title=\"11. \u30eb\u30fc\u30d7\u3068\u518d\u5e30 - Mae\u5411\u304d\u306a\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","description":"11.3 \u30eb\u30fc\u30d7\u306b\u3064\u3044\u3066\u306e\u7df4\u7fd2\u554f\u984c \u5404\u3005\u306e\u884c\u306e\u5024\u304c\u884c\u756a\u53f7\u306e\u81ea\u4e57\u3067\u3042\u308b\u3088\u3046\u306a\u5834\u5408\u306b\u3001triangle \u95a2\u6570\u3068\u540c\u69d8\u306a\u95a2\u6570\u3092\u66f8\u304d\u306a\u3055\u3044\u3002\u305f\u3060\u3057\u3001while \u30eb\u30fc\u30d7\u3092\u4f7f\u3046\u3053\u3068\u3002 (defun triangle2 (number-of-rows) (let ((total 0) (row-number 1)) (while (<= row-number number-of-rows) (setq total (+ total (* row-number row-number))) (setq row-number (1+ row-number))) total)) triangle \u95a2\u6570\u3068\u540c\u69d8\u3060\u304c\u3001\u5404\u3005\u2026","url":"https://maehrm.hatenablog.com/entry/20060616/p3"}