<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>第03講 関数（1/2; 関数の基礎） on プログラミング演習B</title>
    <link>https://ksupbpb.github.io/2025/lesson03/</link>
    <description>Recent content in 第03講 関数（1/2; 関数の基礎） on プログラミング演習B</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>ja</language>
    <copyright>© 2026 </copyright>
    <lastBuildDate>Thu, 18 Sep 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://ksupbpb.github.io/2025/lesson03/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>関数(1/2) 関数の基礎</title>
      <link>https://ksupbpb.github.io/2025/lesson03/function/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://ksupbpb.github.io/2025/lesson03/function/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;関数とは 
    &lt;div id=&#34;関数とは&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e9%96%a2%e6%95%b0%e3%81%a8%e3%81%af&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;span class=&#34;flex&#34; style=&#34;cursor: pointer;&#34;&gt;
  &lt;span class=&#34;rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400&#34;&gt;
    教科書 p.163（Lesson 7）
  &lt;/span&gt;
&lt;/span&gt;

&lt;p&gt;関数とは，処理の集まりに名前をつけたものです．
何度も行う処理の集まりがあったときに，その処理を関数として定義しておくことで，同じ処理を何度も書く必要がなくなります．&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>第03講 週次課題</title>
      <link>https://ksupbpb.github.io/2025/lesson03/assignments/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://ksupbpb.github.io/2025/lesson03/assignments/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;課題03-1 階乗を計算する関数を作成する 
    &lt;div id=&#34;課題03-1-階乗を計算する関数を作成する&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e8%aa%b2%e9%a1%8c03-1-%e9%9a%8e%e4%b9%97%e3%82%92%e8%a8%88%e7%ae%97%e3%81%99%e3%82%8b%e9%96%a2%e6%95%b0%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;

&lt;div class=&#34;flex mt-2&#34;&gt;
  &lt;span
    class=&#34;rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal&#34;&gt;
    &lt;span class=&#34;flex flex-row items-center&#34;&gt;
      
        &lt;span class=&#34;mr-1&#34;&gt;&lt;span class=&#34;relative block icon&#34;&gt;&lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; viewBox=&#34;0 0 384 512&#34;&gt;&lt;path fill=&#34;currentColor&#34; d=&#34;M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z&#34;/&gt;&lt;/svg&gt;
&lt;/span&gt;&lt;/span&gt;
      
      &lt;span&gt;難易度 :star:&lt;/span&gt;
    &lt;/span&gt;
  &lt;/span&gt;
&lt;/div&gt;

&lt;p&gt;コマンドライン引数で与えられた数値の階乗を計算する関数 &lt;code&gt;factorial&lt;/code&gt; を作成してください．
&lt;code&gt;factorial&lt;/code&gt; 関数は，引数 &lt;code&gt;n&lt;/code&gt; に対して，&lt;code&gt;n!&lt;/code&gt; を計算して返すようにしてください．
&lt;code&gt;n!&lt;/code&gt;は，&lt;code&gt;n&lt;/code&gt; から 1 までの整数の積を表します．&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>まとめ</title>
      <link>https://ksupbpb.github.io/2025/lesson03/summary/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://ksupbpb.github.io/2025/lesson03/summary/</guid>
      <description>まとめ（関数の基礎）</description>
      
    </item>
    
  </channel>
</rss>
