<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                這里是你接下要寫的作業,這段介紹了 `if-statement` (if 語句)。把這段輸入進去,讓它能夠正確執行。然后我們看看你是否有收獲。 ~~~ people = 20 cats = 30 dogs = 15 if people < cats puts "Too many cats! The world is doomed!" end if people > cats puts "Not many cats! The world is saved!" end if people < dogs puts "The world is drooled on!" end if people > dogs puts "The world is dry!" end dogs += 5 if people >= dogs puts "People are greater than or equal to dogs." end if people <= dogs puts "People are less than or equal to dogs." end if people == dogs puts "People are dogs." end ~~~ # 你應該看到的結果 * * * * * ~~~ $ ruby ex29.rb Too many cats! The world is doomed! The world is dry! People are greater than or equal to dogs. People are less than or equal to dogs. People are dogs. $ ~~~ # 加分習題 * * * * * 猜猜「if 語句」是什么,它有什么用處。在做下一道習題前,試著用自己的話回答下面的問題: 1. 你認為 if 對于它下一行的代碼做了什么? 2. 把習題 29 中的其它布爾表達式放到「if 語句」中會不會也可以運行呢?試一下。 3. 如果把變量 people、cats 和 dogs 的初始值改掉,會發生什么事情?
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看