<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>utgwkk</author_name>
  <author_url>https://blog.hatena.ne.jp/utgwkk/</author_url>
  <blog_title>私が歌川です</blog_title>
  <blog_url>https://blog.utgw.net/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>おなじみのwhile文。前回の記事からだいぶ経っているようだが気にしない。所詮備忘録。 #! ruby i = 1 while i &lt;= 10 do # ここに書いてある処理を実行 i += 1 # iをインクリメント(1増やす) end 前回の記事とやってる事は全く同じ。ただ、何が違うかというと、while文は、式を評価した値が真の間、繰り返しを行う。 要するに、この場合はi&lt;=10(iが10以下)であれば繰り返すのである。注意することが一つ。while文は、条件式がいつかは偽になる(満たさなくなる)ように作らないと、無限ループしてしまう。また、C言語などでは、 while(1){ // こ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.utgw.net%2Fentry%2F2013%2F04%2F26%2F164315&quot; title=&quot;Ruby忘録 while文 - 私が歌川です&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>2013-04-26 16:43:15</published>
  <title>Ruby忘録 while文</title>
  <type>rich</type>
  <url>https://blog.utgw.net/entry/2013/04/26/164315</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
