{"version":"1.0","height":"190","author_url":"https://blog.hatena.ne.jp/program-shoshinsya/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fprogram-shoshinsya.hatenablog.com%2Fentry%2F2018%2F08%2F24%2F205939\" title=\"\u518d\u8d77\u547c\u3073\u51fa\u3057\u3092\u4f7f\u3063\u30661 ~  n\u306e\u7dcf\u548c\u3092\u8a08\u7b97\u3059\u308b - au\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"program-shoshinsya","title":"\u518d\u8d77\u547c\u3073\u51fa\u3057\u3092\u4f7f\u3063\u30661 ~  n\u306e\u7dcf\u548c\u3092\u8a08\u7b97\u3059\u308b","url":"https://program-shoshinsya.hatenablog.com/entry/2018/08/24/205939","blog_title":"au\u306e\u65e5\u8a18","blog_url":"https://program-shoshinsya.hatenablog.com/","provider_url":"https://hatena.blog","description":"au\u3067\u3059\u3002 \u4eca\u56de\u306f\u518d\u8d77\u547c\u3073\u51fa\u3057\u3092\u4f7f\u3063\u30661~n\u306e\u7dcf\u548c\u3092\u8a08\u7b97\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d44\u307f\u307e\u3057\u305f\u3002 #include <stdio.h> int sum_total(int n) { if (n == 1) { return 1; } return n + sum_total(n - 1); } int main(void) { int n = 0; int result = 0; printf(\"\u6570\u5b57\u3092\u5165\u529b: \"); scanf(\"%d\", &n); result = sum_total(n); printf(\"1 ~ %d\u306e\u7dcf\u548c: %d\\n\", n, result); return 0; } // \u5b9f\u884c\u2026","image_url":null,"type":"rich","published":"2018-08-24 20:59:39","provider_name":"Hatena Blog","categories":["C\u8a00\u8a9e"]}