<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>program-shoshinsya</author_name>
  <author_url>https://blog.hatena.ne.jp/program-shoshinsya/</author_url>
  <blog_title>auの日記</blog_title>
  <blog_url>https://program-shoshinsya.hatenablog.com/</blog_url>
  <categories>
    <anon>C言語</anon>
  </categories>
  <description>auです。 今回は再起呼び出しを使って1~nの総和を計算するプログラムを組みました。 #include &lt;stdio.h&gt; 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(&quot;数字を入力: &quot;); scanf(&quot;%d&quot;, &amp;n); result = sum_total(n); printf(&quot;1 ~ %dの総和: %d\n&quot;, n, result); return 0; } // 実行…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fprogram-shoshinsya.hatenablog.com%2Fentry%2F2018%2F08%2F24%2F205939&quot; title=&quot;再起呼び出しを使って1 ~  nの総和を計算する - auの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-08-24 20:59:39</published>
  <title>再起呼び出しを使って1 ~  nの総和を計算する</title>
  <type>rich</type>
  <url>https://program-shoshinsya.hatenablog.com/entry/2018/08/24/205939</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
