<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cbttrainer</author_name>
  <author_url>https://blog.hatena.ne.jp/cbttrainer/</author_url>
  <blog_title>プログラミング学習日記</blog_title>
  <blog_url>https://webenginieer34.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>やりたいこと 1 ≦ x ≦ 6, 1 ≦ y ≦ 6, /はスラッシュ記号のとき、x / yが全部で何パターンあるか調べたい。 コード x = [1, 2, 3, 4, 5, 6] y = [1, 2, 3, 4, 5, 6] count = 0 x.each do |x_num| y.each do |y_num| puts &quot;#{x_num}/#{y_num}&quot; count += 1 end end puts count 出力結果 [algorithm]$ ruby six.rb 1/1 1/2 1/3 1/4 1/5 1/6 2/1 2/2 2/3 2/4 2/5 2/6 3/1 3/…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwebenginieer34.hatenadiary.com%2Fentry%2F2024%2F06%2F23%2F124854&quot; title=&quot;1 ≦ x ≦ 6, 1 ≦ y ≦ 6, `/`はスラッシュ記号のとき、`x / y`が全部で何パターンあるか調べたい - プログラミング学習日記&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>2024-06-23 12:48:54</published>
  <title>1 ≦ x ≦ 6, 1 ≦ y ≦ 6, `/`はスラッシュ記号のとき、`x / y`が全部で何パターンあるか調べたい</title>
  <type>rich</type>
  <url>https://webenginieer34.hatenadiary.com/entry/2024/06/23/124854</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
