{"id":1119,"date":"2023-09-26T11:15:16","date_gmt":"2023-09-26T02:15:16","guid":{"rendered":"http:\/\/rikemenrikejo.com\/?p=1119"},"modified":"2023-09-26T11:15:49","modified_gmt":"2023-09-26T02:15:49","slug":"processing%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%83%ab%e3%83%bc%e3%83%97%e5%87%a6%e7%90%86%e7%b9%b0%e3%82%8a%e8%bf%94%e3%81%97%e5%87%a6%e7%90%86%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9","status":"publish","type":"post","link":"https:\/\/rikemenrikejo.com\/?p=1119","title":{"rendered":"Processing\u306b\u304a\u3051\u308b\u30eb\u30fc\u30d7\u51e6\u7406(\u7e70\u308a\u8fd4\u3057\u51e6\u7406)\u306e\u4f7f\u3044\u65b9"},"content":{"rendered":"\n<p>Processing\u3067\u306e\u300c\u30eb\u30fc\u30d7\u300d\u306b\u306f\u4e3b\u306b2\u3064\u306e\u30bf\u30a4\u30d7\u304c\u3042\u308a\u307e\u3059\u3002\u4e00\u3064\u306f\u300cfor\u30eb\u30fc\u30d7\u300d\u3001\u3082\u3046\u4e00\u3064\u306f\u300cwhile\u30eb\u30fc\u30d7\u300d\u3067\u3059\u3002\u307e\u305f\u3001Processing\u306e\u300cdraw()\u300d\u95a2\u6570\u3082\u4e00\u7a2e\u306e\u30eb\u30fc\u30d7\u3068\u8003\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u30eb\u30fc\u30d7\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u6b21<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rikemenrikejo.com\/?p=1119\/#1_for%E3%83%AB%E3%83%BC%E3%83%97\" title=\"1. for\u30eb\u30fc\u30d7\">1. for\u30eb\u30fc\u30d7<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rikemenrikejo.com\/?p=1119\/#2_while%E3%83%AB%E3%83%BC%E3%83%97\" title=\"2. while\u30eb\u30fc\u30d7\">2. while\u30eb\u30fc\u30d7<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/rikemenrikejo.com\/?p=1119\/#3_draw%E9%96%A2%E6%95%B0\" title=\"3. draw()\u95a2\u6570\">3. draw()\u95a2\u6570<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/rikemenrikejo.com\/?p=1119\/#4_%E9%85%8D%E5%88%97%E3%82%92%E5%88%A9%E7%94%A8%E3%81%97%E3%81%9F%E3%83%AB%E3%83%BC%E3%83%97\" title=\"4. \u914d\u5217\u3092\u5229\u7528\u3057\u305f\u30eb\u30fc\u30d7\">4. \u914d\u5217\u3092\u5229\u7528\u3057\u305f\u30eb\u30fc\u30d7<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/rikemenrikejo.com\/?p=1119\/#%E5%9F%BA%E6%9C%AC%E5%BD%A2\" title=\"\u57fa\u672c\u5f62\">\u57fa\u672c\u5f62<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/rikemenrikejo.com\/?p=1119\/#%E6%8B%A1%E5%BC%B5%E7%89%88\" title=\"\u62e1\u5f35\u7248\">\u62e1\u5f35\u7248<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/rikemenrikejo.com\/?p=1119\/#5_for_%E3%81%A8_while%E3%81%AF%E3%81%A9%E3%81%86%E4%BD%BF%E3%81%84%E5%88%86%E3%81%91%E3%82%8B%E3%81%8B\" title=\"5. for \u3068 while\u306f\u3069\u3046\u4f7f\u3044\u5206\u3051\u308b\u304b\">5. for \u3068 while\u306f\u3069\u3046\u4f7f\u3044\u5206\u3051\u308b\u304b<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/rikemenrikejo.com\/?p=1119\/#for%E3%83%AB%E3%83%BC%E3%83%97\" title=\"for\u30eb\u30fc\u30d7\">for\u30eb\u30fc\u30d7<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/rikemenrikejo.com\/?p=1119\/#while%E3%83%AB%E3%83%BC%E3%83%97\" title=\"while\u30eb\u30fc\u30d7\">while\u30eb\u30fc\u30d7<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/rikemenrikejo.com\/?p=1119\/#6_%E6%BC%94%E7%BF%92\" title=\"6. \u6f14\u7fd2\">6. \u6f14\u7fd2<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_for%E3%83%AB%E3%83%BC%E3%83%97\"><\/span>1. for\u30eb\u30fc\u30d7<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u300cfor\u30eb\u30fc\u30d7\u300d\u306f\u3001\u6307\u5b9a\u3057\u305f\u56de\u6570\u3060\u3051\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u3092\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>for (\u521d\u671f\u5316; \u6761\u4ef6; \u66f4\u65b0) {\n  \/\/ \u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3059\u308b\u30b3\u30fc\u30c9\n}<\/code><\/pre>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001\u6a2a\u306b10\u500b\u306e\u77e9\u5f62\u3092\u63cf\u753b\u3059\u308b\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>void setup() {\n  size(200, 200);\n}\n\nvoid draw() {\n  background(255);\n  for (int i = 0; i &lt; 10; i++) {\n    rect(i * 20, 50, 20, 20);\n  }\n}\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_while%E3%83%AB%E3%83%BC%E3%83%97\"><\/span>2. while\u30eb\u30fc\u30d7<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u300cwhile\u30eb\u30fc\u30d7\u300d\u306f\u3001\u6307\u5b9a\u3057\u305f\u6761\u4ef6\u304c\u771f\u3067\u3042\u308b\u9650\u308a\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u3092\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>while (\u6761\u4ef6) {\n  \/\/ \u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3059\u308b\u30b3\u30fc\u30c9\n}<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u3001\u300cwhile\u30eb\u30fc\u30d7\u300d\u3092\u4f7f\u7528\u3057\u306610\u500b\u306e\u77e9\u5f62\u3092\u63cf\u753b\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>void setup() {\n  size(200, 200);\n}\n\nvoid draw() {\n  background(255);\n  int i = 0;\n  while (i &lt; 10) {\n    rect(i * 20, 50, 20, 20);\n    i++;\n  }\n}<\/code><\/pre>\n\n\n\n<p>\u203b while\u30eb\u30fc\u30d7\u3067\u306fi++\u306e\u3088\u3046\u306b\u66f4\u65b0\u3059\u308b\u7b87\u6240\u3092\u8a18\u8f09\u5fd8\u308c\u305f\u5834\u5408\u306b\u300c\u7121\u9650\u30eb\u30fc\u30d7\u300d\u3068\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_draw%E9%96%A2%E6%95%B0\"><\/span>3. draw()\u95a2\u6570<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Processing\u306e<code>draw()<\/code>\u95a2\u6570\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30d5\u30ec\u30fc\u30e0\u30ec\u30fc\u30c8\u306b\u5f93\u3063\u3066\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3082\u4e00\u7a2e\u306e\u30eb\u30fc\u30d7\u3068\u898b\u306a\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<code>draw()<\/code>\u95a2\u6570\u5185\u3067\u63cf\u753b\u51e6\u7406\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3084\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30d3\u30b8\u30e5\u30a2\u30eb\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>void setup() {\n  size(200, 200);\n}\n\nvoid draw() {\n  background(255);\n  ellipse(mouseX, mouseY, 20, 20);\n}\n<\/code><\/pre>\n\n\n\n<p>\u203bProcessing\u3067\u30d3\u30b8\u30e5\u30a2\u30eb\u8868\u73fe\u306a\u3069\u3067\u753b\u9762\u3092\u66f4\u65b0\u3057\u3066\u3044\u304f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308b\u3053\u3068\u304c\u591a\u3044\u305f\u3081\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30d5\u30ec\u30fc\u30e0\u3054\u3068\u306b\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3059\u308b\u95a2\u6570\u3067\u3042\u308bdraw()\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306f\u3001\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u306e\u4f4d\u7f6e\u306b\u5186\u3092\u63cf\u753b\u3059\u308b\u4f8b\u3067\u3059\u3002\u30de\u30a6\u30b9\u3092\u52d5\u304b\u3059\u3068\u3001<code>draw()<\/code>\u95a2\u6570\u304c\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3055\u308c\u3001\u30ab\u30fc\u30bd\u30eb\u306e\u4f4d\u7f6e\u306b\u5408\u308f\u305b\u3066\u5186\u304c\u63cf\u753b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30eb\u30fc\u30d7\u69cb\u9020\u3092\u7406\u89e3\u3057\u3001\u9069\u5207\u306b\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u69d8\u3005\u306a\u30d1\u30bf\u30fc\u30f3\u306e\u63cf\u753b\u3084\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Processing\u3067\u914d\u5217\u306e\u8981\u7d20\u306b\u5bfe\u3057\u3066\u30eb\u30fc\u30d7\u3092\u56de\u3059\u969b\u306f\u3001\u901a\u5e38\u300cfor\u30eb\u30fc\u30d7\u300d\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u3001\u57fa\u672c\u7684\u306a\u65b9\u6cd5\u3068\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_%E9%85%8D%E5%88%97%E3%82%92%E5%88%A9%E7%94%A8%E3%81%97%E3%81%9F%E3%83%AB%E3%83%BC%E3%83%97\"><\/span>4. \u914d\u5217\u3092\u5229\u7528\u3057\u305f\u30eb\u30fc\u30d7<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%9F%BA%E6%9C%AC%E5%BD%A2\"><\/span>\u57fa\u672c\u5f62<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u914d\u5217\u306e\u8981\u7d20\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f0\u304b\u3089\u59cb\u307e\u308a\u307e\u3059\u306e\u3067\u3001\u914d\u5217\u306e\u9577\u3055\u304c<code>n<\/code>\u306e\u5834\u5408\u3001\u6709\u52b9\u306a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f<code>0<\/code>\u304b\u3089<code>n-1<\/code>\u307e\u3067\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u57fa\u672c\u7684\u306a\u914d\u5217\u306e\u8981\u7d20\u306b\u5bfe\u3059\u308b\u30eb\u30fc\u30d7\u306e\u66f8\u304d\u65b9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>for (int i = 0; i &lt; \u914d\u5217\u306e\u9577\u3055; i++) {\n  \/\/ \u914d\u5217&#91;i] \u3067 i \u756a\u76ee\u306e\u8981\u7d20\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\n}<\/code><\/pre>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001\u6574\u6570\u306e\u914d\u5217\u304c\u3042\u308a\u3001\u305d\u306e\u5404\u8981\u7d20\u3092\u77e9\u5f62\u306e\u5e45\u3068\u3057\u3066\u63cf\u753b\u3059\u308b\u30b3\u30fc\u30c9\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>int&#91;] widths = {20, 40, 60, 80, 100};\n\nvoid setup() {\n  size(200, 200);\n}\n\nvoid draw() {\n  background(255);\n  int x = 0;\n  for (int i = 0; i &lt; widths.length; i++) {\n    rect(x, 50, widths&#91;i], 20);\n    x += widths&#91;i]; \/\/ \u6b21\u306e\u77e9\u5f62\u306eX\u5ea7\u6a19\u3092\u8a08\u7b97\n  }\n}<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001<code>widths<\/code>\u914d\u5217\u306e\u5404\u8981\u7d20\u3092\u9806\u306b\u53d6\u308a\u51fa\u3057\u3001\u305d\u306e\u5024\u3092\u77e9\u5f62\u306e\u5e45\u3068\u3057\u3066\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%8B%A1%E5%BC%B5%E7%89%88\"><\/span>\u62e1\u5f35\u7248<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Java\uff08\u305d\u3057\u3066Processing\uff09\u306b\u306f\u3001\u914d\u5217\u306e\u8981\u7d20\u3092\u7c21\u6f54\u306b\u53d6\u308a\u51fa\u3059\u305f\u3081\u306e\u300c\u62e1\u5f35for\u30eb\u30fc\u30d7\u300d\u307e\u305f\u306f\u300cfor-each\u30eb\u30fc\u30d7\u300d\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>for (\u578b \u5909\u6570\u540d : \u914d\u5217) {\n  \/\/ \u5909\u6570\u540d \u3067\u914d\u5217\u306e\u5404\u8981\u7d20\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\n}<\/code><\/pre>\n\n\n\n<p>\u203b\u57fa\u672c\u5f62\u3067\u3082\u62e1\u5f35\u7248\u3067\u3082\u3069\u3061\u3089\u3092\u5229\u7528\u3057\u3066\u3082\u7d50\u679c\u306f\u540c\u3058\u3067\u3059<\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3092\u62e1\u5f35for\u30eb\u30fc\u30d7\u3092\u4f7f\u3063\u3066\u66f8\u304d\u63db\u3048\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>int&#91;] widths = {20, 40, 60, 80, 100};\n\nvoid setup() {\n  size(200, 200);\n}\n\nvoid draw() {\n  background(255);\n  int x = 0;\n  for (int width : widths) {\n    rect(x, 50, width, 20);\n    x += width; \/\/ \u6b21\u306e\u77e9\u5f62\u306eX\u5ea7\u6a19\u3092\u8a08\u7b97\n  }\n}\n<\/code><\/pre>\n\n\n\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u30b3\u30fc\u30c9\u304c\u5c11\u3057\u30b7\u30f3\u30d7\u30eb\u306b\u306a\u308a\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u65b9\u6cd5\u3067\u306f\u8981\u7d20\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u901a\u5e38\u306efor\u30eb\u30fc\u30d7\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u65b9\u6cd5\u3092\u6d3b\u7528\u3057\u3001\u914d\u5217\u306e\u8981\u7d20\u306b\u5bfe\u3057\u3066\u52b9\u7387\u7684\u306b\u64cd\u4f5c\u3092\u884c\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5_for_%E3%81%A8_while%E3%81%AF%E3%81%A9%E3%81%86%E4%BD%BF%E3%81%84%E5%88%86%E3%81%91%E3%82%8B%E3%81%8B\"><\/span>5. for \u3068 while\u306f\u3069\u3046\u4f7f\u3044\u5206\u3051\u308b\u304b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"for%E3%83%AB%E3%83%BC%E3%83%97\"><\/span><code>for<\/code>\u30eb\u30fc\u30d7<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u660e\u78ba\u306a\u56de\u6570\u306e\u7e70\u308a\u8fd4\u3057\uff1a<\/strong> <code>for<\/code>\u30eb\u30fc\u30d7\u306f\u3001\u30eb\u30fc\u30d7\u304c\u5b9f\u884c\u3055\u308c\u308b\u56de\u6570\u304c\u660e\u78ba\u306a\u5834\u5408\u3001\u307e\u305f\u306f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u3059\u3079\u3066\u306e\u8981\u7d20\u306b\u5bfe\u3057\u3066\u64cd\u4f5c\u3092\u884c\u3046\u5834\u5408\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/li><li><strong>\u30ab\u30a6\u30f3\u30bf\u30fc\u5909\u6570\u306e\u5229\u7528\uff1a<\/strong> \u30ab\u30a6\u30f3\u30bf\u30fc\u5909\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u7e70\u308a\u8fd4\u3057\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8ffd\u8de1\u3059\u308b\u5834\u5408\u306b\u4fbf\u5229\u3067\u3059\u3002<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">javaCopy code<code>\/\/ 10\u56de\u7e70\u308a\u8fd4\u3059\u4f8b\nfor (int i = 0; i &lt; 10; i++) {\n    \/\/ \u30b3\u30fc\u30c9\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"while%E3%83%AB%E3%83%BC%E3%83%97\"><\/span><code>while<\/code>\u30eb\u30fc\u30d7<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u4e0d\u660e\u78ba\u306a\u56de\u6570\u306e\u7e70\u308a\u8fd4\u3057\uff1a<\/strong> <code>while<\/code>\u30eb\u30fc\u30d7\u306f\u3001\u7e70\u308a\u8fd4\u3057\u306e\u56de\u6570\u304c\u4e0d\u660e\u78ba\u3067\u3001\u7279\u5b9a\u306e\u6761\u4ef6\u304c\u771f\u3067\u3042\u308b\u9650\u308a\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/li><li><strong>\u72b6\u614b\u306e\u8a55\u4fa1\uff1a<\/strong> <code>while<\/code>\u30eb\u30fc\u30d7\u306f\u3001\u3042\u308b\u72b6\u614b\u304c\u5909\u5316\u3059\u308b\u307e\u3067\u30eb\u30fc\u30d7\u3092\u7d9a\u3051\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306b\u4fbf\u5229\u3067\u3059\u3002<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<p><strong>(\u4f8b) for or while\u306e\u4f7f\u3044\u5206\u3051<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u914d\u5217\u3084\u30ea\u30b9\u30c8\u306e\u5404\u8981\u7d20\u306b\u5bfe\u3059\u308b\u64cd\u4f5c\uff1a<\/strong> <code>for<\/code>\u30eb\u30fc\u30d7<\/li><li><strong>\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u306e\u5165\u529b\u3092\u5f85\u3064\uff1a<\/strong> <code>while<\/code>\u30eb\u30fc\u30d7<\/li><li><strong>\u30d5\u30a1\u30a4\u30eb\u306e\u5404\u884c\u3092\u8aad\u307f\u53d6\u308b\uff1a<\/strong> <code>for<\/code>\u30eb\u30fc\u30d7 \u307e\u305f\u306f <code>while<\/code>\u30eb\u30fc\u30d7\uff08\u5177\u4f53\u7684\u306a\u72b6\u6cc1\u306b\u4f9d\u5b58\uff09<\/li><\/ul>\n\n\n\n<p><strong>\u7d50\u8ad6<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u7e70\u308a\u8fd4\u3057\u56de\u6570\u304c\u4e8b\u524d\u306b\u5206\u304b\u3063\u3066\u3044\u308b\u3001\u307e\u305f\u306f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u8981\u7d20\u306b\u5bfe\u3057\u3066\u30a4\u30c6\u30ec\u30fc\u30c8\u3059\u308b\u5834\u5408\u306f\u3001<code>for<\/code>\u30eb\u30fc\u30d7\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/li><li>\u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u7e70\u308a\u8fd4\u3059\u5fc5\u8981\u304c\u3042\u308a\u3001\u7e70\u308a\u8fd4\u3057\u306e\u56de\u6570\u304c\u52d5\u7684\u3067\u3042\u308b\u3001\u307e\u305f\u306f\u4e8b\u524d\u306b\u306f\u5206\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u3001<code>while<\/code>\u30eb\u30fc\u30d7\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"6_%E6%BC%94%E7%BF%92\"><\/span>6. \u6f14\u7fd2<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>\u7570\u306a\u308b\u5927\u304d\u3055\u306e\u5186\u3092\u63cf\u753b\u3059\u308b<code>for<\/code>\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li><li><code>while<\/code>\u30eb\u30fc\u30d7\u3092\u4f7f\u7528\u3057\u3066\u3001\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u306b\u30e9\u30f3\u30c0\u30e0\u306a\u5927\u304d\u3055\u306e\u5186\u3092\u63cf\u753b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li><li><code>for<\/code>\u30eb\u30fc\u30d7\u306e\u30cd\u30b9\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c1\u30a7\u30c3\u30ab\u30fc\u30dc\u30fc\u30c9\u30d1\u30bf\u30fc\u30f3\u3092\u63cf\u753b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Processing\u3067\u306e\u300c\u30eb\u30fc\u30d7\u300d\u306b\u306f\u4e3b\u306b2\u3064\u306e\u30bf\u30a4\u30d7\u304c\u3042\u308a\u307e\u3059\u3002\u4e00\u3064\u306f\u300cfor\u30eb\u30fc\u30d7\u300d\u3001\u3082\u3046\u4e00\u3064\u306f\u300cwhile\u30eb\u30fc\u30d7\u300d\u3067\u3059\u3002\u307e\u305f\u3001Processing\u306e\u300cdraw()\u300d\u95a2\u6570\u3082\u4e00\u7a2e\u306e\u30eb\u30fc\u30d7\u3068\u8003\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u306f &#8230; <\/p>\n","protected":false},"author":1,"featured_media":1120,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[83,82],"tags":[79,84],"class_list":{"0":"post-1119","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-introduction-processing","8":"category-sci-tech","9":"tag-processing","10":"tag-sci-tech"},"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/rikemenrikejo.com\/wp-content\/uploads\/2023\/09\/loop.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rikemenrikejo.com\/index.php?rest_route=\/wp\/v2\/posts\/1119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rikemenrikejo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rikemenrikejo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rikemenrikejo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rikemenrikejo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1119"}],"version-history":[{"count":1,"href":"https:\/\/rikemenrikejo.com\/index.php?rest_route=\/wp\/v2\/posts\/1119\/revisions"}],"predecessor-version":[{"id":1121,"href":"https:\/\/rikemenrikejo.com\/index.php?rest_route=\/wp\/v2\/posts\/1119\/revisions\/1121"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rikemenrikejo.com\/index.php?rest_route=\/wp\/v2\/media\/1120"}],"wp:attachment":[{"href":"https:\/\/rikemenrikejo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rikemenrikejo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rikemenrikejo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}