{"id":18271,"date":"2026-07-18T21:06:45","date_gmt":"2026-07-18T12:06:45","guid":{"rendered":"https:\/\/genai-ai.co.jp\/ai-kanri\/?p=18271"},"modified":"2026-07-18T21:06:45","modified_gmt":"2026-07-18T12:06:45","slug":"cc-c-for-loop","status":"publish","type":"post","link":"https:\/\/genai-ai.co.jp\/ai-kanri\/blog\/cc-c-for-loop\/","title":{"rendered":"\u30102026\u5e747\u6708\u6700\u65b0\u3011C\u8a00\u8a9e\u306efor\u6587\u5b8c\u5168\u30ac\u30a4\u30c9\uff5cbreak\u30fbcontinue\u6587\u3067\u30eb\u30fc\u30d7\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<style>\n.g-flow-row{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;align-items:center;}\n.g-flow-item{background:linear-gradient(135deg,#1a1a1a,#2a1015);color:#fff;border-radius:8px;padding:16px 14px;min-width:130px;flex:1;text-align:center;}\n.g-flow-arrow{color:#dc2626;font-size:20px;font-weight:700;}\n.g-card-row{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 32px;}\n.g-card-row>div{flex:1;min-width:220px;}\n@media(max-width:600px){\n  .g-flow-row{flex-direction:column;}\n  .g-flow-arrow{transform:rotate(90deg);}\n  .g-card-row{flex-direction:column;}\n  .g-card-row>div{min-width:100%;}\n}\n<\/style>\n\n\n\n<div style=\"margin:0 0 32px;\">\n  <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/07\/thumb-cc-c-for-loop.jpg\" alt=\"\u30102026\u5e747\u6708\u6700\u65b0\u3011C\u8a00\u8a9e\u306efor\u6587\u5b8c\u5168\u30ac\u30a4\u30c9\uff5cbreak\u30fbcontinue\u6587\u3067\u30eb\u30fc\u30d7\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\" style=\"width:100%;height:auto;border-radius:12px;display:block;\">\n<\/div>\n\n\n\n<div style=\"background:#f8f9fa;border-radius:12px;padding:24px 28px;margin:0 0 32px;border-left:4px solid #dc2626;\">\n  <p style=\"font-size:15px;font-weight:700;color:#1a1a1a;margin:0 0 16px;\">\u3053\u306e\u8a18\u4e8b\u306e\u5185\u5bb9<\/p>\n  <ol style=\"margin:0;padding-left:20px;font-size:14px;line-height:2.2;list-style:none;\">\n    <li><a href=\"#sec-01\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">01<\/span>C\u8a00\u8a9e\u306efor\u6587\u3068\u306f\uff08\u30eb\u30fc\u30d7\u51e6\u7406\u306e\u91cd\u8981\u6027\uff09<\/a><\/li>\n    <li><a href=\"#sec-02\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">02<\/span>for\u6587\u306e\u57fa\u672c\u69cb\u6587\uff08\u521d\u671f\u5316\u30fb\u6761\u4ef6\u30fb\u66f4\u65b0\u306e3\u8981\u7d20\uff09<\/a><\/li>\n    <li><a href=\"#sec-03\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">03<\/span>\u57fa\u672c\u7684\u306afor\u6587\u306e\u4f8b\uff08\u5408\u8a08\u30fb\u4e5d\u4e5d\u306e\u8868\uff09<\/a><\/li>\n    <li><a href=\"#sec-04\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">04<\/span>\u4e8c\u91cd\u30eb\u30fc\u30d7\uff08\u30cd\u30b9\u30c8\uff09\u306e\u4f7f\u3044\u65b9<\/a><\/li>\n    <li><a href=\"#sec-05\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">05<\/span>\u7121\u9650\u30eb\u30fc\u30d7 for(;;) \u306e\u66f8\u304d\u65b9\u3068\u7528\u9014<\/a><\/li>\n    <li><a href=\"#sec-06\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">06<\/span>break\u6587\u3067\u30eb\u30fc\u30d7\u3092\u629c\u3051\u308b<\/a><\/li>\n    <li><a href=\"#sec-07\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">07<\/span>continue\u6587\u3067\u30b9\u30ad\u30c3\u30d7\u3059\u308b<\/a><\/li>\n    <li><a href=\"#sec-08\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">08<\/span>for\u6587\u3067\u914d\u5217\u3092\u64cd\u4f5c\u3059\u308b<\/a><\/li>\n    <li><a href=\"#sec-09\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">09<\/span>for\u6587\u3068while\u306e\u66f8\u304d\u63db\u3048\u6bd4\u8f03<\/a><\/li>\n    <li><a href=\"#sec-10\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">10<\/span>\u521d\u671f\u5316\u5b50\u306a\u3057\u30fb\u66f4\u65b0\u306a\u3057\u306efor\u6587<\/a><\/li>\n    <li><a href=\"#sec-11\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">11<\/span>GENAI\u5b9f\u904b\u7528\u3067\u306eC\u8a00\u8a9e\u6d3b\u7528<\/a><\/li>\n    <li><a href=\"#sec-12\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">12<\/span>Claude Code\u306bC\u8a00\u8a9e\u306efor\u6587\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3055\u305b\u308b<\/a><\/li>\n    <li><a href=\"#faq\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">FAQ<\/span>\u3088\u304f\u3042\u308b\u8cea\u554f<\/a><\/li>\n  <\/ol>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">C\u8a00\u8a9e\u3092\u5b66\u3076\u4e0a\u3067\u3001for\u6587\u306f\u6700\u521d\u306b\u58c1\u306b\u306a\u308b\u69cb\u6587\u306e\u3072\u3068\u3064\u3067\u3059\u3002\u300c\u4f55\u5ea6\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u305b\u3070\u3044\u3044\u306e\u304b\u308f\u304b\u3089\u306a\u3044\u300d\u300cbreak\u6587\u3068continue\u6587\u306e\u4f7f\u3044\u3069\u3053\u308d\u304c\u308f\u304b\u3089\u306a\u3044\u300d\u3068\u3044\u3046\u60a9\u307f\u3092\u6301\u3064\u65b9\u306f\u591a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<strong>C\u8a00\u8a9e\u306efor\u6587\u306e\u57fa\u672c\u69cb\u6587<\/strong>\u304b\u3089\u59cb\u307e\u308a\u3001<strong>break\u6587\u30fbcontinue\u6587\u306b\u3088\u308b\u30eb\u30fc\u30d7\u5236\u5fa1<\/strong>\u3001<strong>\u4e8c\u91cd\u30eb\u30fc\u30d7\uff08\u30cd\u30b9\u30c8\uff09<\/strong>\u3001<strong>\u7121\u9650\u30eb\u30fc\u30d7<\/strong>\u3001\u305d\u3057\u3066<strong>\u914d\u5217\u3068\u306e\u7d44\u307f\u5408\u308f\u305b<\/strong>\u307e\u3067\u3001\u5177\u4f53\u7684\u306a\u30b3\u30fc\u30c9\u4f8b\u3068\u3068\u3082\u306b\u5fb9\u5e95\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3055\u3089\u306b\u8a18\u4e8b\u306e\u5f8c\u534a\u3067\u306f\u3001<strong>AI\uff08Claude Code\uff09\u3092\u4f7f\u3063\u3066C\u8a00\u8a9e\u306efor\u6587\u30b3\u30fc\u30c9\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\u65b9\u6cd5<\/strong>\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306bAI\u3092\u6d3b\u7528\u3059\u308b\u65b9\u6cd5\u3092\u77e5\u308b\u3053\u3068\u3067\u3001\u5b66\u7fd2\u30b9\u30d4\u30fc\u30c9\u3092\u5927\u304d\u304f\u52a0\u901f\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">for\u6587\u306fC\u8a00\u8a9e\u306e\u6839\u5e79\u3068\u3082\u3044\u3048\u308b\u69cb\u6587\u3067\u3059\u3002for\u6587\u3092\u5b8c\u5168\u306b\u4f7f\u3044\u3053\u306a\u305b\u308c\u3070\u3001\u914d\u5217\u64cd\u4f5c\u30fb\u884c\u5217\u8a08\u7b97\u30fb\u30c7\u30fc\u30bf\u63a2\u7d22\u306a\u3069\u3001\u307b\u3068\u3093\u3069\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304c\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u4eca\u65e5\u306f\u5165\u9580\u8005\u306e\u65b9\u3067\u3082\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u306a\u304c\u3089\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u3001\u5b9f\u884c\u7d50\u679c\u4ed8\u304d\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u8c4a\u5bcc\u306b\u7528\u610f\u3057\u307e\u3057\u305f\u3002\u305c\u3072\u624b\u5143\u306e\u74b0\u5883\u3067\u52d5\u304b\u3057\u306a\u304c\u3089\u8aad\u307f\u9032\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3092\u6700\u5f8c\u307e\u3067\u8aad\u3080\u3068\u3001\u6b21\u306e\u3053\u3068\u304c\u7406\u89e3\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#fafafa;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #dc2626;\">\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>C\u8a00\u8a9e\u306efor\u6587\u306e\u57fa\u672c\u69cb\u6587<\/strong>\uff08\u521d\u671f\u5316\u30fb\u6761\u4ef6\u30fb\u66f4\u65b0\u306e3\u8981\u7d20\uff09\u306e\u5b8c\u5168\u7406\u89e3<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>break\u6587\u30fbcontinue\u6587<\/strong>\u3092\u4f7f\u3063\u305f\u30eb\u30fc\u30d7\u5236\u5fa1\u306e\u4f7f\u3044\u65b9\u3068\u4f7f\u3044\u5206\u3051<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u4e8c\u91cd\u30eb\u30fc\u30d7\uff08\u30cd\u30b9\u30c8\uff09<\/strong>\u30672\u6b21\u5143\u914d\u5217\u3084\u4e5d\u4e5d\u306e\u8868\u3092\u51e6\u7406\u3059\u308b\u65b9\u6cd5<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u7121\u9650\u30eb\u30fc\u30d7 for(;;)<\/strong>\u306e\u66f8\u304d\u65b9\u3068\u6b63\u3057\u3044\u7d42\u4e86\u6761\u4ef6\u306e\u8a2d\u5b9a<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>for\u6587\u3068while\u6587<\/strong>\u306e\u66f8\u304d\u63db\u3048\u6bd4\u8f03\u3068\u3001\u72b6\u6cc1\u306b\u5fdc\u3058\u305f\u9078\u629e\u57fa\u6e96<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>Claude Code\u3067C\u8a00\u8a9e\u306e\u30b3\u30fc\u30c9\u3092\u81ea\u52d5\u751f\u6210<\/strong>\u3059\u308b\u30d7\u30ed\u30f3\u30d7\u30c8\u624b\u6cd5<\/span><\/div>\n\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-c-for-loop&#038;blog_slug=cc-c-for-loop\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=cc-c-for-loop&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-01\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">01<\/span>\n  <span class=\"section-label\" style=\"display:block;\">FOR LOOP BASICS<\/span>\n  <span class=\"section-title\" style=\"display:block;\">C\u8a00\u8a9e\u306efor\u6587\u3068\u306f\uff08\u30eb\u30fc\u30d7\u51e6\u7406\u306e\u91cd\u8981\u6027\uff09<\/span>\n  <span class=\"section-desc\">for\u6587\u30fbwhile\u6587\u30fbdo-while\u6587\u306e\u4f7f\u3044\u5206\u3051\u3092\u7406\u89e3\u3059\u308b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e2d\u3067\u300c\u540c\u3058\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3059\u300d\u3053\u3068\u306f\u975e\u5e38\u306b\u983b\u7e41\u306b\u767b\u5834\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u300c1\u304b\u3089100\u307e\u3067\u306e\u5408\u8a08\u3092\u8a08\u7b97\u3059\u308b\u300d\u300c\u914d\u5217\u306e\u5168\u8981\u7d20\u3092\u8868\u793a\u3059\u308b\u300d\u300c\u6761\u4ef6\u3092\u6e80\u305f\u3059\u307e\u3067\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u3092\u5f85\u3064\u300d\u3068\u3044\u3063\u305f\u51e6\u7406\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3089\u3092\u6bce\u56de\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u4e26\u3079\u308b\u3053\u3068\u306f\u73fe\u5b9f\u7684\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u3053\u3067\u767b\u5834\u3059\u308b\u306e\u304c<strong>\u30eb\u30fc\u30d7\u69cb\u6587\uff08\u7e70\u308a\u8fd4\u3057\u51e6\u7406\uff09<\/strong>\u3067\u3059\u3002C\u8a00\u8a9e\u306b\u306f\u4e3b\u306b3\u7a2e\u985e\u306e\u30eb\u30fc\u30d7\u69cb\u6587\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>\u30eb\u30fc\u30d7\u51e6\u7406<\/strong>\uff1a\u540c\u3058\u51e6\u7406\u3092\u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u308b\u307e\u3067\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3059\u308b\u5236\u5fa1\u69cb\u9020\u3002\u300c\u30eb\u30fc\u30d7\u300d\u3068\u306f\u82f1\u8a9e\u3067\u300c\u8f2a\u300d\u3092\u610f\u5473\u3057\u3001\u51e6\u7406\u304c\u5186\u74b0\u72b6\u306b\u7e70\u308a\u8fd4\u3055\u308c\u308b\u30a4\u30e1\u30fc\u30b8\u304b\u3089\u6765\u3066\u3044\u307e\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u304a\u3044\u3066\u30eb\u30fc\u30d7\u306f\u6700\u3082\u57fa\u672c\u7684\u304b\u3064\u91cd\u8981\u306a\u5236\u5fa1\u69cb\u9020\u306e\u3072\u3068\u3064\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<table>\n<thead><tr><th>\u30eb\u30fc\u30d7\u69cb\u6587<\/th><th>\u7279\u5fb4<\/th><th>\u4e3b\u306a\u4f7f\u3044\u3069\u3053\u308d<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>for\u6587<\/td><td>\u7e70\u308a\u8fd4\u3057\u56de\u6570\u304c\u3042\u3089\u304b\u3058\u3081\u6c7a\u307e\u3063\u3066\u3044\u308b<\/td><td>\u914d\u5217\u306e\u5168\u8981\u7d20\u51e6\u7406\u3001\u30ab\u30a6\u30f3\u30bf\u5236\u5fa1\u30eb\u30fc\u30d7<\/td><\/tr>\n<tr><td>while\u6587<\/td><td>\u6761\u4ef6\u304c\u771f\u306e\u9593\u30eb\u30fc\u30d7\u7d99\u7d9a<\/td><td>\u7e70\u308a\u8fd4\u3057\u56de\u6570\u304c\u4e0d\u5b9a\u3001\u30d5\u30a1\u30a4\u30eb\u8aad\u307f\u8fbc\u307f\u306a\u3069<\/td><\/tr>\n<tr><td>do-while\u6587<\/td><td>\u6700\u4f4e1\u56de\u306f\u5fc5\u305a\u5b9f\u884c<\/td><td>\u30e1\u30cb\u30e5\u30fc\u8868\u793a\u3001\u5165\u529b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306a\u3069<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<p class=\"wp-block-paragraph\">3\u7a2e\u985e\u306e\u4e2d\u3067\u3082<strong>for\u6587<\/strong>\u306f\u6700\u3082\u3088\u304f\u4f7f\u308f\u308c\u307e\u3059\u3002\u7406\u7531\u306f\u300c\u521d\u671f\u5316\u30fb\u6761\u4ef6\u30fb\u66f4\u65b0\u300d\u3068\u3044\u30463\u3064\u306e\u8981\u7d20\u304c1\u884c\u306b\u307e\u3068\u307e\u3063\u3066\u898b\u3084\u3059\u304f\u3001\u7e70\u308a\u8fd4\u3057\u56de\u6570\u304c\u660e\u78ba\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u3084\u3059\u3044\u304b\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u521d\u5fc3\u8005\u306e\u65b9\u306f\u300c\u30eb\u30fc\u30d73\u7a2e\u985e\u3092\u5168\u90e8\u899a\u3048\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u300d\u3068\u601d\u3044\u304c\u3061\u3067\u3059\u304c\u3001\u5b9f\u969b\u306e\u73fe\u5834\u3067\u306f for\u6587 \u304c\u5727\u5012\u7684\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002\u307e\u305afor\u6587\u3092\u5b8c\u5168\u306b\u4f7f\u3044\u3053\u306a\u3059\u3053\u3068\u306b\u96c6\u4e2d\u3057\u307e\u3057\u3087\u3046\u3002<\/div>\n<\/div>\n\n\n\n<div style=\"background:#f0fdf4;border:1px solid #22c55e;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:18px;\">&#128161;<\/span>\n    <strong style=\"color:#16a34a;font-size:15px;\">for\u6587 vs while\u6587\u306e\u9078\u3073\u65b9\u306e\u57fa\u672c<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u300c\u7e70\u308a\u8fd4\u3057\u56de\u6570\u304c\u3042\u3089\u304b\u3058\u3081\u308f\u304b\u3063\u3066\u3044\u308b\u300d\u2192 for\u6587\u3002\u300c\u6761\u4ef6\u304c\u5909\u5316\u3059\u308b\u307e\u3067\u4f55\u5ea6\u3082\u7e70\u308a\u8fd4\u3059\u300d\u2192 while\u6587\u3002\u3053\u306e\u5224\u65ad\u57fa\u6e96\u3092\u6700\u521d\u306b\u899a\u3048\u3066\u304a\u304f\u3068\u3001\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u969b\u306b\u8ff7\u3046\u6642\u9593\u304c\u5927\u5e45\u306b\u6e1b\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001for\u6587\u306f\u30b3\u30fc\u30c9\u306e\u8aad\u307f\u624b\u306b\u3068\u3063\u3066\u3082\u300c\u3053\u306e\u30eb\u30fc\u30d7\u306f\u4f55\u56de\u56de\u308b\u306e\u304b\u300d\u304c\u3072\u3068\u76ee\u3067\u308f\u304b\u308b\u305f\u3081\u3001\u30b3\u30fc\u30c9\u306e\u53ef\u8aad\u6027\uff08\u8aad\u307f\u3084\u3059\u3055\uff09\u304c\u4e0a\u304c\u308b\u3068\u3044\u3046\u30e1\u30ea\u30c3\u30c8\u3082\u3042\u308a\u307e\u3059\u3002\u5927\u898f\u6a21\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u53ef\u8aad\u6027\u304c\u975e\u5e38\u306b\u91cd\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-c-for-loop&#038;blog_slug=cc-c-for-loop\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=cc-c-for-loop&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-02\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">02<\/span>\n  <span class=\"section-label\" style=\"display:block;\">SYNTAX<\/span>\n  <span class=\"section-title\" style=\"display:block;\">for\u6587\u306e\u57fa\u672c\u69cb\u6587\uff08\u521d\u671f\u5316\u30fb\u6761\u4ef6\u30fb\u66f4\u65b0\u306e3\u8981\u7d20\uff09<\/span>\n  <span class=\"section-desc\">C\u8a00\u8a9e for\u6587\u306e\u66f8\u304d\u65b9\u30921\u884c\u305a\u3064\u4e01\u5be7\u306b\u89e3\u8aac<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">C\u8a00\u8a9e\u306efor\u6587\u306e\u57fa\u672c\u69cb\u6587\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">for (\u521d\u671f\u5316\u5f0f; \u6761\u4ef6\u5f0f; \u66f4\u65b0\u5f0f) {\n    \/* \u7e70\u308a\u8fd4\u3059\u51e6\u7406 *\/\n}<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e3\u3064\u306e\u8981\u7d20\u304cfor\u6587\u306e\u6838\u5fc3\u3067\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u5f79\u5272\u3092\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2-1. \u521d\u671f\u5316\u5f0f\uff08\u30eb\u30fc\u30d7\u958b\u59cb\u524d\u306b1\u56de\u3060\u3051\u5b9f\u884c\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u521d\u671f\u5316\u5f0f<\/strong>\u306ffor\u6587\u304c\u5b9f\u884c\u3055\u308c\u308b\u6700\u521d\u306e1\u56de\u3060\u3051\u8a55\u4fa1\u3055\u308c\u307e\u3059\u3002\u901a\u5e38\u306f\u300c\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u306e\u521d\u671f\u5024\u8a2d\u5b9a\u300d\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">int i = 0;  \/* i\u3068\u3044\u3046\u5909\u6570\u30920\u3067\u521d\u671f\u5316 *\/<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u300ci\u300d\u306f\u30eb\u30fc\u30d7\u30ab\u30a6\u30f3\u30bf\u306e\u6163\u7528\u7684\u306a\u5909\u6570\u540d\u3067\u3059\uff08index\u30fbiterator\u306e\u982d\u6587\u5b57\uff09\u30020\u304b\u3089\u59cb\u3081\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u304c\u30011\u3084\u4efb\u610f\u306e\u5024\u304b\u3089\u59cb\u3081\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>\u30ab\u30a6\u30f3\u30bf\u5909\u6570<\/strong>\uff1a\u30eb\u30fc\u30d7\u306e\u7e70\u308a\u8fd4\u3057\u56de\u6570\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u5909\u6570\u3002for\u6587\u3067\u306f\u6163\u7fd2\u7684\u306b\u300ci\u300d\u300cj\u300d\u300ck\u300d\u3068\u3044\u3046\u540d\u524d\u304c\u4f7f\u308f\u308c\u307e\u3059\u3002i \u306f\u5916\u5074\u306e\u30eb\u30fc\u30d7\u3001j \u306f\u5185\u5074\u306e\u30eb\u30fc\u30d7\uff08\u30cd\u30b9\u30c8\u6642\uff09\u3001k \u306f\u3055\u3089\u306b\u5185\u5074\u306e\u30eb\u30fc\u30d7\u306b\u4f7f\u3046\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2-2. \u6761\u4ef6\u5f0f\uff08\u30eb\u30fc\u30d7\u3092\u7d9a\u3051\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u6761\u4ef6\u5f0f<\/strong>\u306f\u5404\u30eb\u30fc\u30d7\u306e\u7e70\u308a\u8fd4\u3057\u306e\u524d\u306b\u8a55\u4fa1\u3055\u308c\u307e\u3059\u3002\u6761\u4ef6\u5f0f\u304c<strong>\u771f\uff08true \/ \u975e\u30bc\u30ed\uff09\u306e\u9593\u306f\u30eb\u30fc\u30d7\u3092\u7d99\u7d9a<\/strong>\u3057\u3001\u507d\uff08false \/ 0\uff09\u306b\u306a\u3063\u305f\u6642\u70b9\u3067\u30eb\u30fc\u30d7\u3092\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">i &lt; 10;  \/* i \u304c 10 \u3088\u308a\u5c0f\u3055\u3044\u9593\u306f\u30eb\u30fc\u30d7\u7d99\u7d9a *\/<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u6761\u4ef6\u5f0f\u306b\u306f\u4e0d\u7b49\u53f7\uff08<, >, <=, >=\uff09\u3084\u7b49\u5024\u6bd4\u8f03\uff08==, !=\uff09\u3092\u4f7f\u3044\u307e\u3059\u3002<strong>i <= 9 \u3068 i < 10 \u306f\u540c\u3058\u610f\u5473<\/strong>\u3067\u3059\u304c\u3001C\u8a00\u8a9e\u3067\u306f\u300ci < \u914d\u5217\u30b5\u30a4\u30ba\u300d\u3068\u3044\u3046\u66f8\u304d\u65b9\u304c\u6163\u7fd2\u7684\u306b\u591a\u304f\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#fef2f2;border:2px solid #dc2626;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:20px;\">&#9888;&#65039;<\/span>\n    <strong style=\"color:#dc2626;font-size:16px;\">\u6761\u4ef6\u5f0f\u306e\u300c=\u300d\u3068\u300c==\u300d\u306e\u9593\u9055\u3044\u306b\u6ce8\u610f<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">if\u6587\u3084for\u6587\u306e\u6761\u4ef6\u5f0f\u3067\u4ee3\u5165\u6f14\u7b97\u5b50\u300c=\u300d\u3092\u4f7f\u3063\u3066\u3057\u307e\u3046\u30df\u30b9\u306f\u521d\u5fc3\u8005\u306b\u975e\u5e38\u306b\u591a\u3044\u3067\u3059\u3002\u300ci = 10\u300d\u3068\u66f8\u304f\u3068\u300ci\u306b10\u3092\u4ee3\u5165\u3059\u308b\u300d\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308a\u3001\u8fd4\u308a\u5024\uff0810\uff09\u306f\u5e38\u306b\u771f\u306b\u306a\u308b\u305f\u3081\u7121\u9650\u30eb\u30fc\u30d7\u306b\u306a\u308a\u307e\u3059\u3002\u6bd4\u8f03\u306b\u306f\u5fc5\u305a\u300ci == 10\u300d\u3068\u300c==\u300d\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2-3. \u66f4\u65b0\u5f0f\uff08\u5404\u7e70\u308a\u8fd4\u3057\u306e\u672b\u5c3e\u3067\u5b9f\u884c\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u66f4\u65b0\u5f0f<\/strong>\u306f\u5404\u30eb\u30fc\u30d7\u306e\u672b\u5c3e\uff08\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u5b9f\u884c\u5f8c\uff09\u306b\u8a55\u4fa1\u3055\u308c\u307e\u3059\u3002\u901a\u5e38\u306f\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u3092\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\uff081\u5897\u3084\u3059\uff09\u307e\u305f\u306f\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\uff081\u6e1b\u3089\u3059\uff09\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">i++   \/* i \u3092\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\uff08i = i + 1 \u3068\u540c\u3058\uff09 *\/\ni--   \/* i \u3092\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\uff08i = i - 1 \u3068\u540c\u3058\uff09 *\/\ni += 2 \/* i \u30922\u305a\u3064\u5897\u3084\u3059 *\/<\/pre>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2-4. for\u6587\u306e\u5b9f\u884c\u306e\u6d41\u308c\u3092\u56f3\u3067\u7406\u89e3\u3059\u308b<\/h3>\n\n\n\n<div class=\"g-flow-row\" style=\"margin:24px 0;\">\n  <div class=\"g-flow-item\">\u2460\u521d\u671f\u5316\u5f0f\uff081\u56de\u306e\u307f\uff09<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">\u2461\u6761\u4ef6\u5f0f\u3092\u8a55\u4fa1<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">\u2462\u30eb\u30fc\u30d7\u672c\u4f53\u3092\u5b9f\u884c<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">\u2463\u66f4\u65b0\u5f0f\u3092\u5b9f\u884c<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">\u2464\u2461\u306b\u623b\u308b<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u9806\u5e8f\u3092\u982d\u306b\u5165\u308c\u3066\u304a\u304f\u3053\u3068\u3067\u3001\u300c\u3044\u3064\u6761\u4ef6\u304c\u8a55\u4fa1\u3055\u308c\u308b\u306e\u304b\u300d\u300c\u66f4\u65b0\u5f0f\u306f\u3044\u3064\u5b9f\u884c\u3055\u308c\u308b\u306e\u304b\u300d\u3068\u3044\u3046\u7591\u554f\u304c\u30af\u30ea\u30a2\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n\nint main(void) {\n    int i;\n    for (i = 0; i &lt; 5; i++) {\n        printf(&quot;i = %d\\n&quot;, i);\n    }\n    return 0;\n}\n\n\/* \u51fa\u529b:\ni = 0\ni = 1\ni = 2\ni = 3\ni = 4\n*\/<\/pre>\n<\/div>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">for\u6587\u306e\u5b9f\u884c\u9806\u5e8f\u306f\u300c\u521d\u671f\u5316 \u2192 \u6761\u4ef6\u30c1\u30a7\u30c3\u30af \u2192 \u672c\u4f53 \u2192 \u66f4\u65b0 \u2192 \u6761\u4ef6\u30c1\u30a7\u30c3\u30af \u2192 ...\u300d\u3067\u3059\u3002\u3053\u306e\u6d41\u308c\u3092\u4e00\u5ea6\u624b\u3067\u8ffd\u3046\u3068\u3001\u3069\u3093\u306a\u8907\u96d1\u306afor\u6587\u3067\u3082\u8aad\u307f\u89e3\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-c-for-loop&#038;blog_slug=cc-c-for-loop\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=cc-c-for-loop&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-03\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">03<\/span>\n  <span class=\"section-label\" style=\"display:block;\">EXAMPLES<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u57fa\u672c\u7684\u306afor\u6587\u306e\u4f8b\uff081\u301c100\u306e\u5408\u8a08\u3001\u4e5d\u4e5d\u306e\u8868\uff09<\/span>\n  <span class=\"section-desc\">\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3067\u7406\u89e3\u3092\u6df1\u3081\u308b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u7406\u8ad6\u3092\u7406\u89e3\u3057\u305f\u3089\u3001\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3067\u52d5\u304b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002for\u6587\u306e\u5b9a\u756a\u30b5\u30f3\u30d7\u30eb\u30923\u3064\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3-1. 1\u304b\u3089100\u307e\u3067\u306e\u5408\u8a08\u3092\u8a08\u7b97\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u3082\u57fa\u672c\u7684\u306afor\u6587\u306e\u4f7f\u3044\u65b9\u306e\u3072\u3068\u3064\u304c\u300c1\u304b\u3089N\u307e\u3067\u306e\u5408\u8a08\u3092\u6c42\u3081\u308b\u300d\u51e6\u7406\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n\nint main(void) {\n    int i;\n    int sum = 0;\n\n    for (i = 1; i &lt;= 100; i++) {\n        sum += i;  \/* sum = sum + i \u3068\u540c\u3058 *\/\n    }\n\n    printf(&quot;1\u304b\u3089100\u306e\u5408\u8a08: %d\\n&quot;, sum);\n    return 0;\n}\n\n\/* \u51fa\u529b:\n1\u304b\u3089100\u306e\u5408\u8a08: 5050\n*\/<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001i \u304c 1 \u304b\u3089 100 \u307e\u30671\u305a\u3064\u5897\u3048\u306a\u304c\u3089\u3001sum += i \u304c\u7e70\u308a\u8fd4\u3055\u308c\u307e\u3059\u3002\u30ac\u30a6\u30b9\u306e\u516c\u5f0f\uff08n*(n+1)\/2\uff09\u3067\u3082\u6c42\u3081\u3089\u308c\u307e\u3059\u304c\u3001for\u6587\u306b\u3088\u308b\u53cd\u5fa9\u8a08\u7b97\u304c\u3069\u306e\u3088\u3046\u306b\u6a5f\u80fd\u3059\u308b\u304b\u3092\u7406\u89e3\u3059\u308b\u306e\u306b\u6700\u9069\u306a\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f0fdf4;border:1px solid #22c55e;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:18px;\">&#128161;<\/span>\n    <strong style=\"color:#16a34a;font-size:15px;\">sum += i \u306e\u610f\u5473<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">sum += i \u306f sum = sum + i \u306e\u7701\u7565\u5f62\u3067\u3059\u3002i++ \u304c i = i + 1 \u306e\u7701\u7565\u5f62\u3067\u3042\u308b\u306e\u3068\u540c\u3058\u8003\u3048\u65b9\u3067\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u8907\u5408\u4ee3\u5165\u6f14\u7b97\u5b50\uff08+=, -=, *=, \/=\uff09\u306fC\u8a00\u8a9e\u3067\u3088\u304f\u767b\u5834\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3-2. \u4e5d\u4e5d\u306e\u8868\u3092\u8868\u793a\u3059\u308b\uff08\u4e8c\u91cd\u30eb\u30fc\u30d7\u306e\u4e88\u544a\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306f\u4e5d\u4e5d\u306e\u8868\u3092\u8868\u793a\u3059\u308b\u30b3\u30fc\u30c9\u3067\u3059\u3002\u3053\u308c\u306f\u5f8c\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3059\u308b\u300c\u4e8c\u91cd\u30eb\u30fc\u30d7\uff08\u30cd\u30b9\u30c8\uff09\u300d\u3092\u5148\u306b\u4f53\u9a13\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n\nint main(void) {\n    int i, j;\n\n    for (i = 1; i &lt;= 9; i++) {\n        for (j = 1; j &lt;= 9; j++) {\n            printf(&quot;%3d&quot;, i * j);\n        }\n        printf(&quot;\\n&quot;);  \/* \u884c\u672b\u3067\u6539\u884c *\/\n    }\n    return 0;\n}\n\n\/* \u51fa\u529b\uff08\u4e00\u90e8\uff09:\n  1  2  3  4  5  6  7  8  9\n  2  4  6  8 10 12 14 16 18\n  3  6  9 12 15 18 21 24 27\n...\n*\/<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5916\u5074\u306efor\u6587\u304c\u300c\u6bb5\uff081\u306e\u6bb5\u301c9\u306e\u6bb5\uff09\u300d\u3092\u5236\u5fa1\u3057\u3001\u5185\u5074\u306efor\u6587\u304c\u300c\u5404\u6bb5\u306e1\u500d\u304b\u30899\u500d\u300d\u3092\u5236\u5fa1\u3057\u3066\u3044\u307e\u3059\u3002printf \u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u6307\u5b9a\u5b50 %3d \u306f\u300c3\u6587\u5b57\u5206\u306e\u5e45\u3067\u6574\u6570\u3092\u8868\u793a\u300d\u3068\u3044\u3046\u610f\u5473\u3067\u3001\u8868\u304c\u6574\u5217\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3-3. \u30ab\u30a6\u30f3\u30c8\u30c0\u30a6\u30f3\u30bf\u30a4\u30de\u30fc\uff08\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u306efor\u6587\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">for\u6587\u306f\u30ab\u30a6\u30f3\u30c8\u30a2\u30c3\u30d7\u3060\u3051\u3067\u306a\u304f\u30ab\u30a6\u30f3\u30c8\u30c0\u30a6\u30f3\u306b\u3082\u4f7f\u3048\u307e\u3059\u3002\u66f4\u65b0\u5f0f\u3092 i-- \u306b\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n\nint main(void) {\n    int i;\n\n    printf(&quot;\u30ab\u30a6\u30f3\u30c8\u30c0\u30a6\u30f3\u958b\u59cb!\\n&quot;);\n    for (i = 10; i &gt;= 1; i--) {\n        printf(&quot;%d\\n&quot;, i);\n    }\n    printf(&quot;\u767a\u5c04!\\n&quot;);\n    return 0;\n}<\/pre>\n<\/div>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u4e5d\u4e5d\u306e\u8868\u30b3\u30fc\u30c9\u306f\u4e8c\u91cd\u30eb\u30fc\u30d7\u306e\u7406\u89e3\u306b\u6700\u9069\u306a\u984c\u6750\u3067\u3059\u3002\u5916\u5074\u30eb\u30fc\u30d7\u304c1\u6bb5\u3054\u3068\u3001\u5185\u5074\u30eb\u30fc\u30d7\u304c\u5404\u6bb5\u306e\u639b\u3051\u7b97\u3068\u3044\u3046\u69cb\u9020\u3092\u610f\u8b58\u3057\u306a\u304c\u3089\u8aad\u3080\u3068\u3001\u30cd\u30b9\u30c8\u306e\u611f\u899a\u304c\u8eab\u306b\u4ed8\u304d\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-c-for-loop&#038;blog_slug=cc-c-for-loop\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=cc-c-for-loop&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-04\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">04<\/span>\n  <span class=\"section-label\" style=\"display:block;\">NESTED LOOP<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u4e8c\u91cd\u30eb\u30fc\u30d7\uff08\u30cd\u30b9\u30c8\uff09\u306e\u4f7f\u3044\u65b9<\/span>\n  <span class=\"section-desc\">2\u6b21\u5143\u914d\u5217\u3068\u306e\u7d44\u307f\u5408\u308f\u305b\u30fb\u884c\u5217\u51e6\u7406<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">for\u6587\u306e\u4e2d\u306b\u3055\u3089\u306bfor\u6587\u3092\u5165\u308c\u308b\u3053\u3068\u3092<strong>\u30cd\u30b9\u30c8\uff08\u5165\u308c\u5b50\uff09<\/strong>\u3068\u547c\u3073\u307e\u3059\u3002\u4e5d\u4e5d\u306e\u8868\u3067\u3082\u4f7f\u3044\u307e\u3057\u305f\u304c\u3001\u30cd\u30b9\u30c8\u306f2\u6b21\u5143\u914d\u5217\u3084\u884c\u5217\u51e6\u7406\u306a\u3069\u3067\u975e\u5e38\u306b\u3088\u304f\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>\u30cd\u30b9\u30c8\uff08\u5165\u308c\u5b50\uff09<\/strong>\uff1afor\u6587\u306e\u4e2d\u306b\u5225\u306efor\u6587\u3092\u5165\u308c\u305f\u69cb\u9020\u3002\u5916\u5074\u306e\u30eb\u30fc\u30d7\u304c1\u56de\u56de\u308b\u305f\u3073\u306b\u3001\u5185\u5074\u306e\u30eb\u30fc\u30d7\u304c\u5168\u56de\u6570\u56de\u308a\u307e\u3059\u30022\u6b21\u5143\u914d\u5217\u306e\u5168\u8981\u7d20\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u306a\u3069\u3001\u884c\u00d7\u5217\u306e\u7d44\u307f\u5408\u308f\u305b\u3092\u51e6\u7406\u3059\u308b\u30b7\u30fc\u30f3\u3067\u591a\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4-1. 2\u6b21\u5143\u914d\u5217\u306e\u5168\u8981\u7d20\u3092\u51e6\u7406\u3059\u308b<\/h3>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n\nint main(void) {\n    int matrix[3][3] = {\n        {1, 2, 3},\n        {4, 5, 6},\n        {7, 8, 9}\n    };\n    int i, j;\n\n    \/* 2\u6b21\u5143\u914d\u5217\u306e\u5168\u8981\u7d20\u3092\u8868\u793a *\/\n    for (i = 0; i &lt; 3; i++) {       \/* \u884c\u306e\u30eb\u30fc\u30d7 *\/\n        for (j = 0; j &lt; 3; j++) {   \/* \u5217\u306e\u30eb\u30fc\u30d7 *\/\n            printf(&quot;%d &quot;, matrix[i][j]);\n        }\n        printf(&quot;\\n&quot;);\n    }\n    return 0;\n}\n\n\/* \u51fa\u529b:\n1 2 3\n4 5 6\n7 8 9\n*\/<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5916\u5074\u306efor\u6587\uff08i\uff09\u304c\u884c\u3092\u3001\u5185\u5074\u306efor\u6587\uff08j\uff09\u304c\u5217\u3092\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002matrix[i][j] \u3068\u3044\u3046\u30a2\u30af\u30bb\u30b9\u30d1\u30bf\u30fc\u30f3\u306f2\u6b21\u5143\u914d\u5217\u306e\u57fa\u672c\u3067\u3001i \u304c\u884c\u756a\u53f7\u3001j \u304c\u5217\u756a\u53f7\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4-2. \u884c\u5217\u306e\u5408\u8a08\u30fb\u5e73\u5747\u3092\u8a08\u7b97\u3059\u308b<\/h3>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n\nint main(void) {\n    int scores[3][4] = {\n        {85, 92, 78, 90},\n        {70, 85, 95, 88},\n        {60, 75, 80, 70}\n    };\n    int i, j;\n    int total = 0;\n    double avg;\n\n    for (i = 0; i &lt; 3; i++) {\n        int row_total = 0;\n        for (j = 0; j &lt; 4; j++) {\n            row_total += scores[i][j];\n            total += scores[i][j];\n        }\n        printf(&quot;\u751f\u5f92%d\u306e\u5408\u8a08: %d\\n&quot;, i + 1, row_total);\n    }\n\n    avg = (double)total \/ (3 * 4);\n    printf(&quot;\u5168\u4f53\u5e73\u5747: %.2f\\n&quot;, avg);\n    return 0;\n}<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u3088\u3046\u306b\u3001\u751f\u5f92\u00d7\u79d1\u76ee\u306e\u5f62\u3067\u70b9\u6570\u3092\u7ba1\u7406\u3059\u308b\u5834\u5408\u306b2\u6b21\u5143\u914d\u5217\uff0b\u4e8c\u91cd\u30eb\u30fc\u30d7\u304c\u6d3b\u8e8d\u3057\u307e\u3059\u3002\u5b9f\u969b\u306e\u6210\u7e3e\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3084\u7d71\u8a08\u51e6\u7406\u3067\u3082\u540c\u69d8\u306e\u30d1\u30bf\u30fc\u30f3\u304c\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#fef2f2;border:2px solid #dc2626;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:20px;\">&#9888;&#65039;<\/span>\n    <strong style=\"color:#dc2626;font-size:16px;\">\u30cd\u30b9\u30c8\u304c\u6df1\u304f\u306a\u308a\u3059\u304e\u308b\u3053\u3068\u306e\u5f0a\u5bb3<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">3\u91cd\u30fb4\u91cd\u306e\u30cd\u30b9\u30c8\u306f\u30b3\u30fc\u30c9\u306e\u53ef\u8aad\u6027\u3092\u8457\u3057\u304f\u4e0b\u3052\u307e\u3059\u3002\u30cd\u30b9\u30c8\u304c3\u91cd\u4ee5\u4e0a\u306b\u306a\u308b\u5834\u5408\u306f\u3001\u5185\u5074\u306e\u51e6\u7406\u3092\u5225\u306e\u95a2\u6570\u306b\u5207\u308a\u51fa\u3059\u3053\u3068\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u300c\u95a2\u6570\u5316\u300d\u306fC\u8a00\u8a9e\u306e\u91cd\u8981\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u5f0a\u793e\u3067\u3082\u30c7\u30fc\u30bf\u96c6\u8a08\u51e6\u7406\u306bC\u8a00\u8a9e\u306e\u30cd\u30b9\u30c8\u30eb\u30fc\u30d7\u3092\u4f7f\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u30023\u91cd\u30cd\u30b9\u30c8\u3092\u898b\u305f\u3089\u3001\u307e\u305a\u300c\u5185\u5074\u306e\u51e6\u7406\u3092\u95a2\u6570\u306b\u3067\u304d\u306a\u3044\u304b\u300d\u3068\u8003\u3048\u308b\u306e\u304c\u7fd2\u6163\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-c-for-loop&#038;blog_slug=cc-c-for-loop\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=cc-c-for-loop&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-05\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">05<\/span>\n  <span class=\"section-label\" style=\"display:block;\">INFINITE LOOP<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u7121\u9650\u30eb\u30fc\u30d7 for(;;) \u306e\u66f8\u304d\u65b9\u3068\u7528\u9014<\/span>\n  <span class=\"section-desc\">\u610f\u56f3\u7684\u306a\u7121\u9650\u30eb\u30fc\u30d7\u306e\u6b63\u3057\u3044\u4f7f\u3044\u65b9<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">C\u8a00\u8a9e\u3067\u306f\u3001\u6761\u4ef6\u5f0f\u3092\u7701\u7565\u3059\u308b\u3053\u3068\u3067<strong>\u7121\u9650\u30eb\u30fc\u30d7<\/strong>\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u7121\u9650\u30eb\u30fc\u30d7\u3068\u805e\u304f\u3068\u30d0\u30b0\u306e\u3088\u3046\u306b\u805e\u3053\u3048\u307e\u3059\u304c\u3001\u5b9f\u306f\u610f\u56f3\u7684\u306b\u4f7f\u3046\u5834\u9762\u304c\u591a\u3005\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">\/* for\u6587\u3067\u7121\u9650\u30eb\u30fc\u30d7\u3092\u4f5c\u308b\u65b9\u6cd5 *\/\nfor (;;) {\n    \/* \u7121\u9650\u306b\u7e70\u308a\u8fd4\u3059\u51e6\u7406 *\/\n}<\/pre>\n<\/div>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>\u7121\u9650\u30eb\u30fc\u30d7<\/strong>\uff1a\u7d42\u4e86\u6761\u4ef6\u304c\u306a\u304f\u3001\u7406\u8ad6\u4e0a\u6c38\u9060\u306b\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3055\u308c\u308b\u30eb\u30fc\u30d7\u3002\u7d44\u307f\u8fbc\u307f\u30b7\u30b9\u30c6\u30e0\u306e\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u63a5\u7d9a\u5f85\u6a5f\u51e6\u7406\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30e1\u30cb\u30e5\u30fc\u51e6\u7406\u306a\u3069\u3067\u610f\u56f3\u7684\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002break\u6587\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u7d42\u4e86\u6761\u4ef6\u3092\u8a2d\u5b9a\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">5-1. \u7121\u9650\u30eb\u30fc\u30d7\u306e\u6b63\u3057\u3044\u4f7f\u3044\u65b9\uff08break\u3068\u7d44\u307f\u5408\u308f\u305b\uff09<\/h3>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n\nint main(void) {\n    int input;\n\n    printf(&quot;\u6570\u5024\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\uff080\u3067\u7d42\u4e86\uff09:\\n&quot;);\n\n    for (;;) {                    \/* \u7121\u9650\u30eb\u30fc\u30d7\u958b\u59cb *\/\n        printf(&quot;\u5165\u529b: &quot;);\n        scanf(&quot;%d&quot;, &amp;input);\n\n        if (input == 0) {\n            printf(&quot;\u7d42\u4e86\u3057\u307e\u3059\\n&quot;);\n            break;                \/* 0\u304c\u5165\u529b\u3055\u308c\u305f\u3089\u30eb\u30fc\u30d7\u8131\u51fa *\/\n        }\n\n        printf(&quot;\u5165\u529b\u3055\u308c\u305f\u5024: %d\\n&quot;, input);\n    }\n\n    return 0;\n}<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">for(;;) \u3068break\u6587\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u300c\u7279\u5b9a\u306e\u5165\u529b\u304c\u3042\u308b\u307e\u3067\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3059\u300d\u3068\u3044\u3046\u81ea\u7136\u306a\u30b3\u30fc\u30c9\u304c\u66f8\u3051\u307e\u3059\u3002\u3053\u306e\u30d1\u30bf\u30fc\u30f3\u306f\u30e1\u30cb\u30e5\u30fc\u51e6\u7406\u3084\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3067\u975e\u5e38\u306b\u3088\u304f\u767b\u5834\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5-2. \u7d44\u307f\u8fbc\u307f\u30b7\u30b9\u30c6\u30e0\u3067\u306e\u7121\u9650\u30eb\u30fc\u30d7<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30de\u30a4\u30b3\u30f3\uff08Arduino\u3001STM32\u306a\u3069\uff09\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u306f\u3001<strong>\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u3092\u7121\u9650\u30eb\u30fc\u30d7\u3067\u66f8\u304f\u3053\u3068\u304c\u6a19\u6e96\u7684<\/strong>\u3067\u3059\u3002\u6a5f\u5668\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u9593\u305a\u3063\u3068\u30bb\u30f3\u30b5\u30fc\u3092\u8aad\u307f\u53d6\u308a\u7d9a\u3051\u305f\u308a\u3001LED\u3092\u5236\u5fa1\u3057\u7d9a\u3051\u308b\u51e6\u7406\u306f\u3001\u7121\u9650\u30eb\u30fc\u30d7\u304c\u6700\u9069\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">\/* \u7d44\u307f\u8fbc\u307f\u30b7\u30b9\u30c6\u30e0\u306e\u5178\u578b\u7684\u306a\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7 *\/\nint main(void) {\n    \/* \u521d\u671f\u5316\u51e6\u7406 *\/\n    init_sensors();\n    init_display();\n\n    \/* \u6a5f\u5668\u304c\u52d5\u3044\u3066\u3044\u308b\u9593\u305a\u3063\u3068\u30eb\u30fc\u30d7 *\/\n    for (;;) {\n        read_sensor_data();\n        update_display();\n        check_buttons();\n    }\n\n    return 0;  \/* \u5b9f\u969b\u306b\u306f\u5230\u9054\u3057\u306a\u3044 *\/\n}<\/pre>\n<\/div>\n\n\n\n<div style=\"background:#f0fdf4;border:1px solid #22c55e;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:18px;\">&#128161;<\/span>\n    <strong style=\"color:#16a34a;font-size:15px;\">while(1) \u3068 for(;;) \u306f\u540c\u3058<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">C\u8a00\u8a9e\u3067\u7121\u9650\u30eb\u30fc\u30d7\u3092\u66f8\u304f\u5834\u5408\u3001for(;;) \u3068 while(1) \u306f\u307e\u3063\u305f\u304f\u540c\u3058\u52d5\u4f5c\u3092\u3057\u307e\u3059\u3002\u3069\u3061\u3089\u3092\u4f7f\u3046\u304b\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u898f\u7d04\u3084\u500b\u4eba\u306e\u597d\u307f\u306b\u3088\u308a\u307e\u3059\u3002\u7d44\u307f\u8fbc\u307f\u958b\u767a\u3067\u306f while(1) \u304c\u3088\u304f\u4f7f\u308f\u308c\u308b\u50be\u5411\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u300c\u7121\u9650\u30eb\u30fc\u30d7 = \u30d0\u30b0\u300d\u3068\u3044\u3046\u30a4\u30e1\u30fc\u30b8\u306f\u534a\u5206\u6b63\u89e3\u3067\u534a\u5206\u8aa4\u89e3\u3067\u3059\u3002\u610f\u56f3\u7684\u306a\u7121\u9650\u30eb\u30fc\u30d7\u306f\u6b63\u3057\u3044break\u6587\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u975e\u5e38\u306b\u5f37\u529b\u306a\u30d1\u30bf\u30fc\u30f3\u306b\u306a\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-c-for-loop&#038;blog_slug=cc-c-for-loop\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=cc-c-for-loop&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-06\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">06<\/span>\n  <span class=\"section-label\" style=\"display:block;\">BREAK STATEMENT<\/span>\n  <span class=\"section-title\" style=\"display:block;\">break\u6587\u3067\u30eb\u30fc\u30d7\u3092\u629c\u3051\u308b<\/span>\n  <span class=\"section-desc\">\u6761\u4ef6\u306b\u5408\u81f4\u3057\u305f\u77ac\u9593\u306b\u30eb\u30fc\u30d7\u3092\u8131\u51fa\u3059\u308b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>break\u6587<\/strong>\u306f\u30eb\u30fc\u30d7\u3092\u5373\u5ea7\u306b\u7d42\u4e86\u3055\u305b\u308b\u547d\u4ee4\u3067\u3059\u3002for\u6587\u3001while\u6587\u3001do-while\u6587\u306e\u3044\u305a\u308c\u3067\u3082\u4f7f\u3048\u307e\u3059\u3002\u307e\u305f\u3001switch\u6587\u3067\u3082\u591a\u7528\u3055\u308c\u308b\u91cd\u8981\u306a\u69cb\u6587\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>break\u6587<\/strong>\uff1a\u30eb\u30fc\u30d7\u3084 switch \u6587\u3092\u5373\u5ea7\u306b\u7d42\u4e86\u3055\u305b\u308b\u5236\u5fa1\u6587\u3002break \u304c\u5b9f\u884c\u3055\u308c\u308b\u3068\u3001\u305d\u308c\u3092\u56f2\u3080\u6700\u3082\u5185\u5074\u306e\u30eb\u30fc\u30d7\uff08\u307e\u305f\u306f switch\uff09\u3092\u629c\u3051\u3066\u3001\u6b21\u306e\u51e6\u7406\u306b\u79fb\u308a\u307e\u3059\u3002\u8907\u6570\u306e\u30cd\u30b9\u30c8\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u4e00\u756a\u5185\u5074\u306e\u30eb\u30fc\u30d7\u3060\u3051\u3092\u629c\u3051\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">6-1. \u914d\u5217\u304b\u3089\u7279\u5b9a\u306e\u5024\u3092\u691c\u7d22\u3057\u3066break\u3059\u308b<\/h3>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n\nint main(void) {\n    int data[] = {15, 38, 7, 92, 41, 56, 23};\n    int target = 41;\n    int i;\n    int found = 0;  \/* \u898b\u3064\u304b\u3063\u305f\u304b\u3069\u3046\u304b\u306e\u30d5\u30e9\u30b0 *\/\n\n    for (i = 0; i &lt; 7; i++) {\n        if (data[i] == target) {\n            printf(&quot;\u5024 %d \u306f %d \u756a\u76ee\u306b\u3042\u308a\u307e\u3059\\n&quot;, target, i);\n            found = 1;\n            break;  \/* \u898b\u3064\u304b\u3063\u305f\u306e\u3067\u30eb\u30fc\u30d7\u7d42\u4e86 *\/\n        }\n    }\n\n    if (!found) {\n        printf(&quot;\u5024 %d \u306f\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\\n&quot;, target);\n    }\n\n    return 0;\n}\n\n\/* \u51fa\u529b:\n\u5024 41 \u306f 4 \u756a\u76ee\u306b\u3042\u308a\u307e\u3059\n*\/<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u76ee\u7684\u306e\u5024\u3092\u898b\u3064\u3051\u305f\u77ac\u9593\u306bbreak\u6587\u3067\u30eb\u30fc\u30d7\u3092\u7d42\u4e86\u3055\u305b\u308b\u3053\u3068\u3067\u3001<strong>\u305d\u308c\u4ee5\u964d\u306e\u7121\u99c4\u306a\u691c\u7d22\u3092\u7701\u304f<\/strong>\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3092\u300c\u7dda\u5f62\u63a2\u7d22\u300d\u3068\u547c\u3073\u3001\u6700\u3082\u57fa\u672c\u7684\u306a\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u3072\u3068\u3064\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6-2. \u30cd\u30b9\u30c8\u30eb\u30fc\u30d7\u3067\u306ebreak\uff08\u6ce8\u610f\u70b9\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6ce8\u610f\u304c\u5fc5\u8981\u306a\u306e\u306f\u3001<strong>\u30cd\u30b9\u30c8\u3057\u305ffor\u6587\u3067break\u6587\u3092\u4f7f\u3046\u3068\u3001\u4e00\u756a\u5185\u5074\u306e\u30eb\u30fc\u30d7\u3057\u304b\u7d42\u4e86\u3057\u306a\u3044<\/strong>\u3068\u3044\u3046\u70b9\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n\nint main(void) {\n    int i, j;\n\n    for (i = 0; i &lt; 3; i++) {\n        for (j = 0; j &lt; 3; j++) {\n            if (j == 1) {\n                break;  \/* \u5185\u5074\u306efor\u6587\u3060\u3051\u3092\u629c\u3051\u308b *\/\n            }\n            printf(&quot;i=%d, j=%d\\n&quot;, i, j);\n        }\n    }\n    return 0;\n}\n\n\/* \u51fa\u529b:\ni=0, j=0\ni=1, j=0\ni=2, j=0\n* j=1 \u3067\u5185\u5074\u30eb\u30fc\u30d7\u304c\u7d42\u4e86\u3059\u308b\u304c\u3001\u5916\u5074\u30eb\u30fc\u30d7\u306f\u7d99\u7d9a\u3059\u308b *\/<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5916\u5074\u306e\u30eb\u30fc\u30d7\u307e\u3067\u629c\u3051\u305f\u3044\u5834\u5408\u306f\u3001\u30d5\u30e9\u30b0\u5909\u6570\u3092\u4f7f\u3046\u65b9\u6cd5\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n\nint main(void) {\n    int i, j;\n    int done = 0;\n\n    for (i = 0; i &lt; 5 &amp;&amp; !done; i++) {\n        for (j = 0; j &lt; 5; j++) {\n            if (i == 2 &amp;&amp; j == 3) {\n                printf(&quot;i=%d, j=%d \u3067\u7d42\u4e86\\n&quot;, i, j);\n                done = 1;\n                break;\n            }\n        }\n    }\n    return 0;\n}<\/pre>\n<\/div>\n\n\n\n<div style=\"background:#fef2f2;border:2px solid #dc2626;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:20px;\">&#9888;&#65039;<\/span>\n    <strong style=\"color:#dc2626;font-size:16px;\">goto\u306b\u3088\u308b\u591a\u91cd\u30eb\u30fc\u30d7\u8131\u51fa\u306f\u63a8\u5968\u3057\u306a\u3044<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">C\u8a00\u8a9e\u306b\u306f goto \u6587\u3068\u3044\u3046\u4efb\u610f\u306e\u5834\u6240\u306b\u30b8\u30e3\u30f3\u30d7\u3067\u304d\u308b\u547d\u4ee4\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u30b3\u30fc\u30c9\u306e\u6d41\u308c\u304c\u8907\u96d1\u306b\u306a\u308b\u305f\u3081\u73fe\u4ee3\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u306f\u539f\u5247\u4f7f\u7528\u3057\u307e\u305b\u3093\u3002\u30d5\u30e9\u30b0\u5909\u6570\u304b\u30eb\u30fc\u30d7\u69cb\u9020\u306e\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3067\u5bfe\u51e6\u3059\u308b\u306e\u304c\u6b63\u3057\u3044\u30a2\u30d7\u30ed\u30fc\u30c1\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u300cbreak\u3067\u5916\u5074\u306e\u30eb\u30fc\u30d7\u3082\u629c\u3051\u3089\u308c\u308b\u3068\u601d\u3063\u3066\u3044\u305f\u300d\u3068\u3044\u3046\u52d8\u9055\u3044\u306f\u975e\u5e38\u306b\u591a\u3044\u3067\u3059\u3002\u4e8c\u91cd\u30eb\u30fc\u30d7\u3067break\u3092\u4f7f\u3046\u524d\u306b\u300c\u3069\u306e\u30eb\u30fc\u30d7\u3092\u629c\u3051\u308b\u306e\u304b\u300d\u3092\u5fc5\u305a\u78ba\u8a8d\u3059\u308b\u7fd2\u6163\u3092\u4ed8\u3051\u307e\u3057\u3087\u3046\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-c-for-loop&#038;blog_slug=cc-c-for-loop\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=cc-c-for-loop&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-07\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">07<\/span>\n  <span class=\"section-label\" style=\"display:block;\">CONTINUE STATEMENT<\/span>\n  <span class=\"section-title\" style=\"display:block;\">continue\u6587\u3067\u30b9\u30ad\u30c3\u30d7\u3059\u308b<\/span>\n  <span class=\"section-desc\">\u7279\u5b9a\u6761\u4ef6\u306e\u53cd\u5fa9\u3060\u3051\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u6b21\u306e\u30eb\u30fc\u30d7\u3078<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>continue\u6587<\/strong>\u306f\u30eb\u30fc\u30d7\u3092\u7d42\u4e86\u3055\u305b\u308b\u306e\u3067\u306f\u306a\u304f\u3001<strong>\u73fe\u5728\u306e\u7e70\u308a\u8fd4\u3057\u3060\u3051\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u6b21\u306e\u7e70\u308a\u8fd4\u3057\u306b\u9032\u3080<\/strong>\u547d\u4ee4\u3067\u3059\u3002\u300c\u4eca\u56de\u3060\u3051\u306f\u30d1\u30b9\u3057\u3066\u3001\u30eb\u30fc\u30d7\u81ea\u4f53\u306f\u7d9a\u3051\u305f\u3044\u300d\u3068\u3044\u3046\u3068\u304d\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>continue\u6587<\/strong>\uff1a\u73fe\u5728\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u4e2d\u65ad\u3057\u3066\u3001\u6b21\u306e\u7e70\u308a\u8fd4\u3057\u306b\u79fb\u884c\u3059\u308b\u5236\u5fa1\u6587\u3002break \u304c\u300c\u30eb\u30fc\u30d7\u3092\u629c\u3051\u308b\u300d\u306e\u306b\u5bfe\u3057\u3066\u3001continue \u306f\u300c\u4eca\u56de\u306e\u7e70\u308a\u8fd4\u3057\u3060\u3051\u3092\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u300d\u3068\u3044\u3046\u9055\u3044\u304c\u3042\u308a\u307e\u3059\u3002\u30eb\u30fc\u30d7\u81ea\u4f53\u306f\u7d99\u7d9a\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">7-1. \u5076\u6570\u3060\u3051\u3092\u8868\u793a\u3059\u308b\uff08\u5947\u6570\u3092\u30b9\u30ad\u30c3\u30d7\uff09<\/h3>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n\nint main(void) {\n    int i;\n\n    printf(&quot;1\u304b\u308910\u307e\u3067\u306e\u5076\u6570:\\n&quot;);\n    for (i = 1; i &lt;= 10; i++) {\n        if (i % 2 != 0) {\n            continue;  \/* \u5947\u6570\u306e\u3068\u304d\u306f\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u6b21\u306e\u30eb\u30fc\u30d7\u3078 *\/\n        }\n        printf(&quot;%d\\n&quot;, i);\n    }\n    return 0;\n}\n\n\/* \u51fa\u529b:\n1\u304b\u308910\u307e\u3067\u306e\u5076\u6570:\n2\n4\n6\n8\n10\n*\/<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">i % 2 != 0 \uff08i\u30922\u3067\u5272\u3063\u305f\u4f59\u308a\u304c0\u3067\u306a\u3044\u3001\u3064\u307e\u308a\u5947\u6570\uff09\u306e\u3068\u304d\u306bcontinue\u304c\u5b9f\u884c\u3055\u308c\u3001printf \u304c\u30b9\u30ad\u30c3\u30d7\u3055\u308c\u307e\u3059\u3002i++ \u306e\u66f4\u65b0\u5f0f\u306f\u5b9f\u884c\u3055\u308c\u3066\u304b\u3089\u6b21\u306e\u30eb\u30fc\u30d7\u306b\u9032\u3080\u70b9\u304cbreak\u3068\u306e\u5927\u304d\u306a\u9055\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7-2. \u7279\u5b9a\u306e\u5024\u3092\u9664\u5916\u3057\u3066\u5408\u8a08\u3092\u6c42\u3081\u308b<\/h3>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n\nint main(void) {\n    int scores[] = {85, -1, 92, 78, -1, 90, 65};\n    int i;\n    int sum = 0;\n    int count = 0;\n\n    \/* -1 \u306f\u300c\u6b20\u5e2d\u300d\u3092\u610f\u5473\u3059\u308b\u306e\u3067\u5408\u8a08\u304b\u3089\u9664\u5916\u3059\u308b *\/\n    for (i = 0; i &lt; 7; i++) {\n        if (scores[i] == -1) {\n            continue;  \/* \u6b20\u5e2d\u30c7\u30fc\u30bf\u306f\u30b9\u30ad\u30c3\u30d7 *\/\n        }\n        sum += scores[i];\n        count++;\n    }\n\n    printf(&quot;\u6709\u52b9\u30c7\u30fc\u30bf\u6570: %d\\n&quot;, count);\n    printf(&quot;\u5408\u8a08: %d\\n&quot;, sum);\n    if (count &gt; 0) {\n        printf(&quot;\u5e73\u5747: %.2f\\n&quot;, (double)sum \/ count);\n    }\n    return 0;\n}\n\n\/* \u51fa\u529b:\n\u6709\u52b9\u30c7\u30fc\u30bf\u6570: 5\n\u5408\u8a08: 410\n\u5e73\u5747: 82.00\n*\/<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u300c-1\u306f\u6b20\u5e2d\u300d\u3068\u3044\u3046\u610f\u5473\u3092\u6301\u3064\u30c7\u30fc\u30bf\u3092\u542b\u3080\u914d\u5217\u3067\u3001\u6b20\u5e2d\u30c7\u30fc\u30bf\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u5e73\u5747\u70b9\u3092\u8a08\u7b97\u3057\u3066\u3044\u307e\u3059\u3002\u5b9f\u969b\u306e\u30c7\u30fc\u30bf\u51e6\u7406\u3067\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u300c\u7121\u52b9\u5024\u30fb\u6b20\u640d\u5024\u306e\u30b9\u30ad\u30c3\u30d7\u300d\u306bcontinue\u304c\u6d3b\u8e8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7-3. break\u3068continue\u306e\u4f7f\u3044\u5206\u3051\u307e\u3068\u3081<\/h3>\n\n\n\n<table>\n<thead><tr><th><\/th><th>break<\/th><th>continue<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u52b9\u679c<\/td><td>\u30eb\u30fc\u30d7\u3092\u5b8c\u5168\u306b\u7d42\u4e86\u3059\u308b<\/td><td>\u73fe\u5728\u306e\u7e70\u308a\u8fd4\u3057\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u6b21\u3078<\/td><\/tr>\n<tr><td>\u30eb\u30fc\u30d7\u7d99\u7d9a<\/td><td>\u30eb\u30fc\u30d7\u7d42\u4e86\uff08\u6b21\u306e\u51e6\u7406\u3078\u79fb\u884c\uff09<\/td><td>\u30eb\u30fc\u30d7\u306f\u7d99\u7d9a\u3059\u308b<\/td><\/tr>\n<tr><td>for\u6587\u3067\u306e\u66f4\u65b0\u5f0f<\/td><td>\u5b9f\u884c\u3055\u308c\u306a\u3044<\/td><td>\u5b9f\u884c\u3055\u308c\u308b\uff08i++ \u306a\u3069\uff09<\/td><\/tr>\n<tr><td>\u4e3b\u306a\u7528\u9014<\/td><td>\u63a2\u7d22\u3067\u76ee\u7684\u5024\u3092\u767a\u898b\u3001\u30a8\u30e9\u30fc\u8131\u51fa<\/td><td>\u7279\u5b9a\u6761\u4ef6\u306e\u51e6\u7406\u3092\u30b9\u30ad\u30c3\u30d7<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<div style=\"background:#f0fdf4;border:1px solid #22c55e;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:18px;\">&#128161;<\/span>\n    <strong style=\"color:#16a34a;font-size:15px;\">break\u3068continue\u306e\u899a\u3048\u65b9<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">break \u306f\u300c\u30d6\u30ec\u30fc\u30ad\uff08\u505c\u6b62\uff09\u300d\u3001continue \u306f\u300c\u30b3\u30f3\u30c6\u30a3\u30cb\u30e5\u30fc\uff08\u7d9a\u884c\uff09\u300d\u3002\u30eb\u30fc\u30d7\u5168\u4f53\u3092\u6b62\u3081\u305f\u3044\u3068\u304d\u306fbreak\u3001\u4eca\u56de\u3060\u3051\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u7d9a\u3051\u305f\u3044\u3068\u304d\u306fcontinue\u3067\u3059\u3002\u3053\u306e\u76f4\u611f\u7684\u306a\u610f\u5473\u5408\u3044\u3067\u899a\u3048\u308b\u3068\u9593\u9055\u3048\u306b\u304f\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">continue\u3068break\u306e\u6df7\u540c\u306f\u975e\u5e38\u306b\u3088\u304f\u3042\u308b\u30df\u30b9\u3067\u3059\u3002\u300c\u30eb\u30fc\u30d7\u304c\u7d42\u308f\u3063\u3066\u3044\u308b\u306f\u305a\u306a\u306e\u306b\u51e6\u7406\u304c\u7d9a\u304f\u300d\u300c\u30b9\u30ad\u30c3\u30d7\u3057\u305f\u306f\u305a\u306a\u306e\u306b\u30eb\u30fc\u30d7\u304c\u6b62\u307e\u3063\u305f\u300d\u3068\u3044\u3046\u5834\u5408\u306f\u3001break\u3068continue\u3092\u4f7f\u3044\u9593\u9055\u3048\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-c-for-loop&#038;blog_slug=cc-c-for-loop\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=cc-c-for-loop&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-08\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">08<\/span>\n  <span class=\"section-label\" style=\"display:block;\">ARRAY OPERATION<\/span>\n  <span class=\"section-title\" style=\"display:block;\">for\u6587\u3067\u914d\u5217\u3092\u64cd\u4f5c\u3059\u308b<\/span>\n  <span class=\"section-desc\">\u5168\u8981\u7d20\u51e6\u7406\u30fb\u6700\u5927\u5024\u63a2\u7d22\u30fb\u30bd\u30fc\u30c8\u306e\u57fa\u790e<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">C\u8a00\u8a9e\u3067for\u6587\u304c\u6700\u3082\u3088\u304f\u4f7f\u308f\u308c\u308b\u5834\u9762\u306e\u3072\u3068\u3064\u304c<strong>\u914d\u5217\u306e\u64cd\u4f5c<\/strong>\u3067\u3059\u3002\u914d\u5217\u306e\u5168\u8981\u7d20\u3092\u8d70\u67fb\u3057\u3066\u51e6\u7406\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u306f\u3001\u30c7\u30fc\u30bf\u51e6\u7406\u306e\u57fa\u672c\u4e2d\u306e\u57fa\u672c\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">8-1. \u914d\u5217\u306e\u5168\u8981\u7d20\u3092\u8868\u793a\u3059\u308b<\/h3>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n\nint main(void) {\n    int arr[] = {10, 20, 30, 40, 50};\n    int size = sizeof(arr) \/ sizeof(arr[0]);  \/* \u914d\u5217\u306e\u8981\u7d20\u6570\u3092\u81ea\u52d5\u8a08\u7b97 *\/\n    int i;\n\n    printf(&quot;\u914d\u5217\u306e\u8981\u7d20\u6570: %d\\n&quot;, size);\n    for (i = 0; i &lt; size; i++) {\n        printf(&quot;arr[%d] = %d\\n&quot;, i, arr[i]);\n    }\n    return 0;\n}<\/pre>\n<\/div>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>sizeof\u6f14\u7b97\u5b50<\/strong>\uff1a\u5909\u6570\u3084\u578b\u306e\u30d0\u30a4\u30c8\u6570\u3092\u8fd4\u3059\u6f14\u7b97\u5b50\u3002sizeof(arr) \u306f\u914d\u5217\u5168\u4f53\u306e\u30d0\u30a4\u30c8\u6570\u3001sizeof(arr[0]) \u306f\u914d\u52171\u8981\u7d20\u306e\u30d0\u30a4\u30c8\u6570\u3092\u8fd4\u3057\u307e\u3059\u3002\u4e21\u8005\u3092\u5272\u308b\u3053\u3068\u3067\u914d\u5217\u306e\u8981\u7d20\u6570\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u914d\u5217\u306e\u30b5\u30a4\u30ba\u3092\u30cf\u30fc\u30c9\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u305b\u305a\u306b\u6e08\u3080\u305f\u3081\u3001\u53ef\u8aad\u6027\u3068\u4fdd\u5b88\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">8-2. \u914d\u5217\u304b\u3089\u6700\u5927\u5024\u30fb\u6700\u5c0f\u5024\u3092\u63a2\u7d22\u3059\u308b<\/h3>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n\nint main(void) {\n    int scores[] = {72, 98, 55, 83, 67, 91, 44};\n    int size = sizeof(scores) \/ sizeof(scores[0]);\n    int i;\n    int max_val = scores[0];  \/* \u6700\u521d\u306e\u8981\u7d20\u3067\u521d\u671f\u5316 *\/\n    int min_val = scores[0];\n    int max_idx = 0;\n    int min_idx = 0;\n\n    for (i = 1; i &lt; size; i++) {  \/* 2\u756a\u76ee\u4ee5\u964d\u3092\u6bd4\u8f03 *\/\n        if (scores[i] &gt; max_val) {\n            max_val = scores[i];\n            max_idx = i;\n        }\n        if (scores[i] &lt; min_val) {\n            min_val = scores[i];\n            min_idx = i;\n        }\n    }\n\n    printf(&quot;\u6700\u9ad8\u70b9: %d\uff08%d\u756a\u76ee\uff09\\n&quot;, max_val, max_idx + 1);\n    printf(&quot;\u6700\u4f4e\u70b9: %d\uff08%d\u756a\u76ee\uff09\\n&quot;, min_val, min_idx + 1);\n    return 0;\n}\n\n\/* \u51fa\u529b:\n\u6700\u9ad8\u70b9: 98\uff082\u756a\u76ee\uff09\n\u6700\u4f4e\u70b9: 44\uff087\u756a\u76ee\uff09\n*\/<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u5927\u5024\u3092\u6c42\u3081\u308b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u300c\u6700\u521d\u306e\u8981\u7d20\u3067\u521d\u671f\u5316 \u2192 2\u756a\u76ee\u4ee5\u964d\u3068\u6bd4\u8f03\u300d\u304c\u5b9a\u77f3\u3067\u3059\u3002\u3053\u306e\u30d1\u30bf\u30fc\u30f3\u306f\u7d71\u8a08\u51e6\u7406\u3084\u9806\u4f4d\u4ed8\u3051\u306a\u3069\u3067\u983b\u7e41\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">8-3. \u6587\u5b57\u5217\uff08char\u914d\u5217\uff09\u3092for\u6587\u3067\u51e6\u7406\u3059\u308b<\/h3>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n#include &lt;string.h&gt;\n\nint main(void) {\n    char str[] = &quot;Hello, C Language!&quot;;\n    int i;\n    int len = strlen(str);\n    int upper_count = 0;\n\n    \/* \u6587\u5b57\u5217\u306e\u5404\u6587\u5b57\u3092\u8d70\u67fb *\/\n    for (i = 0; i &lt; len; i++) {\n        printf(&quot;str[%d] = &#x27;%c&#x27;\\n&quot;, i, str[i]);\n        if (str[i] &gt;= &#x27;A&#x27; &amp;&amp; str[i] &lt;= &#x27;Z&#x27;) {\n            upper_count++;\n        }\n    }\n\n    printf(&quot;\\n\u5927\u6587\u5b57\u306e\u6570: %d\\n&quot;, upper_count);\n    return 0;\n}<\/pre>\n<\/div>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u914d\u5217\u306e\u64cd\u4f5c\u30d1\u30bf\u30fc\u30f3\u306f\u300c\u521d\u671f\u5316 \u2192 \u30eb\u30fc\u30d7\u3067\u8d70\u67fb \u2192 \u6761\u4ef6\u306b\u5fdc\u3058\u305f\u51e6\u7406\u300d\u306e3\u30b9\u30c6\u30c3\u30d7\u304c\u57fa\u672c\u3067\u3059\u3002\u3053\u306e\u5f62\u3092\u610f\u8b58\u3059\u308b\u3060\u3051\u3067\u3001\u3069\u3093\u306a\u914d\u5217\u64cd\u4f5c\u3082\u8a2d\u8a08\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n\n<div style=\"background:#f0fdf4;border:1px solid #22c55e;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:18px;\">&#128161;<\/span>\n    <strong style=\"color:#16a34a;font-size:15px;\">\u914d\u5217\u306e\u5883\u754c\u5916\u30a2\u30af\u30bb\u30b9\u306b\u6ce8\u610f<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">C\u8a00\u8a9e\u3067\u306ffor\u6587\u306e\u30ab\u30a6\u30f3\u30bf\u304c\u914d\u5217\u30b5\u30a4\u30ba\u3092\u8d85\u3048\u3066\u3082\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u3002\u300carr[size]\u300d\u306e\u3088\u3046\u306a\u7bc4\u56f2\u5916\u30a2\u30af\u30bb\u30b9\u306f\u672a\u5b9a\u7fa9\u52d5\u4f5c\uff08\u30d0\u30b0\u306e\u6e29\u5e8a\uff09\u3067\u3059\u3002\u30eb\u30fc\u30d7\u6761\u4ef6\u306f\u5fc5\u305a\u300ci < size\u300d\uff08<= \u3067\u306f\u306a\u304f <\uff09\u3067\u66f8\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-c-for-loop&#038;blog_slug=cc-c-for-loop\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=cc-c-for-loop&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-09\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">09<\/span>\n  <span class=\"section-label\" style=\"display:block;\">FOR vs WHILE<\/span>\n  <span class=\"section-title\" style=\"display:block;\">for\u6587\u3068while\u306e\u66f8\u304d\u63db\u3048\u6bd4\u8f03<\/span>\n  <span class=\"section-desc\">\u72b6\u6cc1\u306b\u5fdc\u3058\u305f\u30eb\u30fc\u30d7\u69cb\u6587\u306e\u9078\u629e\u57fa\u6e96<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">for\u6587\u3068while\u6587\u306f\u4e92\u3044\u306b\u66f8\u304d\u63db\u3048\u304c\u53ef\u80fd\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u3069\u3061\u3089\u3092\u4f7f\u3046\u304b\u306b\u3088\u3063\u3066\u30b3\u30fc\u30c9\u306e\u8aad\u307f\u3084\u3059\u3055\u304c\u5927\u304d\u304f\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">9-1. for\u6587\u3092while\u6587\u3067\u66f8\u304d\u63db\u3048\u308b<\/h3>\n\n\n\n<table>\n<thead><tr><th><\/th><th>for\u6587<\/th><th>while\u6587<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u69cb\u9020<\/td><td>\u521d\u671f\u5316\u30fb\u6761\u4ef6\u30fb\u66f4\u65b0\u304c1\u884c<\/td><td>\u5206\u6563\u3057\u3066\u66f8\u304f<\/td><\/tr>\n<tr><td>\u8aad\u307f\u3084\u3059\u3055<\/td><td>\u30eb\u30fc\u30d7\u7bc4\u56f2\u304c\u4e00\u76ee\u3067\u308f\u304b\u308b<\/td><td>\u521d\u671f\u5316\u304c\u30eb\u30fc\u30d7\u306e\u5916\u306b\u51fa\u308b<\/td><\/tr>\n<tr><td>\u5411\u3044\u3066\u3044\u308b\u5834\u9762<\/td><td>\u7e70\u308a\u8fd4\u3057\u56de\u6570\u304c\u660e\u78ba<\/td><td>\u6761\u4ef6\u304c\u8907\u96d1\u30fb\u56de\u6570\u304c\u4e0d\u5b9a<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">\/* for\u6587 *\/\nfor (i = 0; i &lt; 10; i++) {\n    printf(&quot;%d\\n&quot;, i);\n}\n\n\/* \u540c\u3058\u51e6\u7406\u3092while\u6587\u3067\u66f8\u304f *\/\ni = 0;          \/* \u521d\u671f\u5316\u304c\u30eb\u30fc\u30d7\u306e\u5916 *\/\nwhile (i &lt; 10) {\n    printf(&quot;%d\\n&quot;, i);\n    i++;        \/* \u66f4\u65b0\u304c\u30eb\u30fc\u30d7\u672c\u4f53\u306e\u672b\u5c3e *\/\n}<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3069\u3061\u3089\u3082\u540c\u3058\u7d50\u679c\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u7e70\u308a\u8fd4\u3057\u56de\u6570\u304c\u6c7a\u307e\u3063\u3066\u3044\u308b\u5834\u5408\u306f<strong>for\u6587\u306e\u65b9\u304c\u610f\u56f3\u304c\u660e\u78ba<\/strong>\u3067\u3059\u3002\u300c0\u304b\u30899\u307e\u306710\u56de\u7e70\u308a\u8fd4\u3059\u300d\u3068\u3044\u3046\u60c5\u5831\u304cfor\u6587\u306a\u30891\u884c\u306b\u51dd\u7e2e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">9-2. while\u6587\u306e\u65b9\u304c\u81ea\u7136\u306a\u30b1\u30fc\u30b9<\/h3>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n#include &lt;stdlib.h&gt;\n\nint main(void) {\n    FILE *fp;\n    char line[256];\n\n    fp = fopen(&quot;data.txt&quot;, &quot;r&quot;);\n    if (fp == NULL) return 1;\n\n    \/* \u30d5\u30a1\u30a4\u30eb\u306e\u7d42\u7aef\u307e\u3067\u8aad\u307f\u8fbc\u3080\uff08\u884c\u6570\u304c\u4e0d\u660e\uff09 *\/\n    while (fgets(line, sizeof(line), fp) != NULL) {\n        printf(&quot;%s&quot;, line);\n    }\n\n    fclose(fp);\n    return 0;\n}<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u306e\u3088\u3046\u306b\u300c\u4f55\u884c\u3042\u308b\u304b\u308f\u304b\u3089\u306a\u3044\u300d\u30b1\u30fc\u30b9\u3067\u306f\u3001while\u6587\u306e\u65b9\u304c\u81ea\u7136\u3067\u3059\u3002\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u304c\u4e0d\u8981\u3067\u3001\u300c\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u3081\u305f\u9593\u306f\u7d9a\u3051\u308b\u300d\u3068\u3044\u3046\u610f\u56f3\u304c\u3059\u3063\u304d\u308a\u66f8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"g-flow-row\" style=\"margin:24px 0;\">\n  <div class=\"g-flow-item\">\u7e70\u308a\u8fd4\u3057\u56de\u6570\u304c\u78ba\u5b9a<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">for\u6587\u3092\u9078\u629e<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">\u30b3\u30fc\u30c9\u304c\u7c21\u6f54\u30fb\u610f\u56f3\u660e\u78ba<\/div>\n<\/div>\n\n\n\n<div class=\"g-flow-row\" style=\"margin:24px 0;\">\n  <div class=\"g-flow-item\">\u7e70\u308a\u8fd4\u3057\u56de\u6570\u304c\u4e0d\u5b9a<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">while\u6587\u3092\u9078\u629e<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">\u6761\u4ef6\u306e\u5909\u5316\u3067\u30eb\u30fc\u30d7\u5236\u5fa1<\/div>\n<\/div>\n\n\n\n<div style=\"background:#f0fdf4;border:1px solid #22c55e;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:18px;\">&#128161;<\/span>\n    <strong style=\"color:#16a34a;font-size:15px;\">\u30d7\u30ed\u306e\u5224\u65ad\u57fa\u6e96<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">for\u6587\u30fbwhile\u6587\u306e\u3069\u3061\u3089\u3092\u9078\u3076\u304b\u306f\u300c\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u304c\u5fc5\u8981\u304b\u3069\u3046\u304b\u300d\u3067\u5224\u65ad\u3059\u308b\u306e\u304c\u5b9f\u8df5\u7684\u3067\u3059\u3002\u30ab\u30a6\u30f3\u30bf\u304c\u8981\u308b\u306a\u3089for\u6587\u3001\u6761\u4ef6\u3060\u3051\u3067\u5236\u5fa1\u3067\u304d\u308b\u306a\u3089while\u6587\u3001\u3068\u3044\u3046\u57fa\u6e96\u3092\u6301\u3064\u3068\u8ff7\u3044\u306b\u304f\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-c-for-loop&#038;blog_slug=cc-c-for-loop\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=cc-c-for-loop&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-10\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">10<\/span>\n  <span class=\"section-label\" style=\"display:block;\">FLEXIBLE SYNTAX<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u521d\u671f\u5316\u5b50\u306a\u3057\u30fb\u66f4\u65b0\u306a\u3057\u306efor\u6587\uff08\u67d4\u8edf\u306a\u69cb\u6587\uff09<\/span>\n  <span class=\"section-desc\">3\u8981\u7d20\u3092\u7701\u7565\u3057\u305ffor\u6587\u306e\u5fdc\u7528\u30c6\u30af\u30cb\u30c3\u30af<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">C\u8a00\u8a9e\u306efor\u6587\u3067\u306f\u3001\u521d\u671f\u5316\u5f0f\u30fb\u6761\u4ef6\u5f0f\u30fb\u66f4\u65b0\u5f0f\u306e\u3059\u3079\u3066\u3092\u7701\u7565\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u67d4\u8edf\u6027\u306b\u3088\u308a\u3001\u3055\u307e\u3056\u307e\u306a\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u306e\u30eb\u30fc\u30d7\u304c\u8a18\u8ff0\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">10-1. \u521d\u671f\u5316\u5f0f\u3092\u7701\u7565\u3059\u308b\u30b1\u30fc\u30b9<\/h3>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n\nint main(void) {\n    int i = 0;  \/* for\u6587\u306e\u5916\u3067\u521d\u671f\u5316 *\/\n\n    \/* \u521d\u671f\u5316\u5f0f\u3092\u7701\u7565 *\/\n    for (; i &lt; 5; i++) {\n        printf(&quot;%d\\n&quot;, i);\n    }\n\n    printf(&quot;\u30eb\u30fc\u30d7\u5f8c\u306e i: %d\\n&quot;, i);  \/* i = 5 *\/\n    return 0;\n}<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u521d\u671f\u5316\u5f0f\u3092\u7701\u7565\u3059\u308b\u4e3b\u306a\u7528\u9014\u306f\u300c\u30eb\u30fc\u30d7\u5f8c\u3082\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u306e\u5024\u3092\u4f7f\u3044\u305f\u3044\u5834\u5408\u300d\u3067\u3059\u3002for\u6587\u304c\u7d42\u308f\u3063\u305f\u5f8c\u306b i \u306e\u5024\uff08\u3053\u306e\u4f8b\u3067\u306f5\uff09\u3092\u53c2\u7167\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">10-2. \u66f4\u65b0\u5f0f\u3092\u7701\u7565\u3059\u308b\u30b1\u30fc\u30b9\uff08\u30eb\u30fc\u30d7\u672c\u4f53\u3067\u66f4\u65b0\uff09<\/h3>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n\nint main(void) {\n    int i;\n\n    \/* \u66f4\u65b0\u5f0f\u3092\u7701\u7565\u3057\u3001\u30eb\u30fc\u30d7\u672c\u4f53\u5185\u3067\u66f4\u65b0 *\/\n    for (i = 1; i &lt;= 100; ) {\n        printf(&quot;%d\\n&quot;, i);\n        i *= 2;  \/* 2\u500d\u305a\u3064\u5897\u3084\u3059\uff081, 2, 4, 8, 16, 32, 64...\uff09 *\/\n    }\n    return 0;\n}<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u300c2\u500d\u305a\u3064\u5897\u3084\u3059\u300d\u306e\u3088\u3046\u306b\u3001\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u4ee5\u5916\u306e\u66f4\u65b0\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u66f4\u65b0\u5f0f\u3092\u7701\u7565\u3057\u3066\u30eb\u30fc\u30d7\u672c\u4f53\u5185\u306b\u66f8\u304f\u3068\u8aad\u307f\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">10-3. \u8907\u6570\u306e\u5909\u6570\u3092\u540c\u6642\u306b\u5236\u5fa1\u3059\u308b<\/h3>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">#include &lt;stdio.h&gt;\n\nint main(void) {\n    int i, j;\n\n    \/* \u30ab\u30f3\u30de\u6f14\u7b97\u5b50\u3067\u8907\u6570\u306e\u5909\u6570\u3092\u540c\u6642\u306b\u5236\u5fa1 *\/\n    for (i = 0, j = 10; i &lt; j; i++, j--) {\n        printf(&quot;i=%d, j=%d\\n&quot;, i, j);\n    }\n    return 0;\n}\n\n\/* \u51fa\u529b:\ni=0, j=10\ni=1, j=9\ni=2, j=8\ni=3, j=7\ni=4, j=6\n*\/<\/pre>\n<\/div>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>\u30ab\u30f3\u30de\u6f14\u7b97\u5b50<\/strong>\uff1a\u8907\u6570\u306e\u5f0f\u3092\u30b3\u30f3\u30de\u3067\u533a\u5207\u3063\u3066\u9806\u756a\u306b\u8a55\u4fa1\u3059\u308b\u6f14\u7b97\u5b50\u3002for\u6587\u306e\u521d\u671f\u5316\u5f0f\u3084\u66f4\u65b0\u5f0f\u3067\u300ci=0, j=10\u300d\u306e\u3088\u3046\u306b\u8907\u6570\u306e\u5909\u6570\u3092\u4e00\u5ea6\u306b\u64cd\u4f5c\u3059\u308b\u3068\u304d\u306b\u4f7f\u3044\u307e\u3059\u3002\u5168\u4f53\u306e\u5024\u306f\u6700\u5f8c\u306e\u5f0f\u306e\u5024\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u521d\u671f\u5316\u5f0f\u30fb\u66f4\u65b0\u5f0f\u306e\u7701\u7565\u306f\u300c\u67d4\u8edf\u3055\u300d\u304c\u3042\u308b\u534a\u9762\u3001\u4f7f\u3044\u3059\u304e\u308b\u3068\u53ef\u8aad\u6027\u304c\u843d\u3061\u307e\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u898f\u7d04\u3092\u78ba\u8a8d\u3057\u3066\u3001\u30c1\u30fc\u30e0\u306e\u65b9\u91dd\u306b\u5f93\u3046\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-c-for-loop&#038;blog_slug=cc-c-for-loop\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=cc-c-for-loop&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-11\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">11<\/span>\n  <span class=\"section-label\" style=\"display:block;\">GENAI REAL USE<\/span>\n  <span class=\"section-title\" style=\"display:block;\">GENAI\u5b9f\u904b\u7528\u3067\u306eC\u8a00\u8a9e\u6d3b\u7528<\/span>\n  <span class=\"section-desc\">\u696d\u52d9\u81ea\u52d5\u5316\u30b7\u30b9\u30c6\u30e0\u306b\u304a\u3051\u308bC\u8a00\u8a9e\u306e\u5f79\u5272<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u682a\u5f0f\u4f1a\u793eGENAI\u3067\u306f\u3001AI\u81ea\u52d5\u5316\u30b7\u30b9\u30c6\u30e0\u306e\u958b\u767a\u306b\u304a\u3044\u3066C\u8a00\u8a9e\u304c\u91cd\u8981\u306a\u5f79\u5272\u3092\u62c5\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u7279\u306b<strong>\u7d44\u307f\u8fbc\u307f\u30b7\u30b9\u30c6\u30e0\u9023\u643a\u30fb\u9ad8\u901f\u30c7\u30fc\u30bf\u51e6\u7406\u30fb\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0<\/strong>\u306e\u5206\u91ce\u3067C\u8a00\u8a9e\u304c\u9078\u3070\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">11-1. C\u8a00\u8a9e\u304c\u9078\u3070\u308c\u308b\u696d\u52d9\u30b7\u30fc\u30f3<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">GENAI\u3067AI\u3092\u6d3b\u7528\u3057\u305f\u696d\u52d9\u81ea\u52d5\u5316\u3092\u63a8\u9032\u3059\u308b\u4e2d\u3067\u3001C\u8a00\u8a9e\u304c\u4f7f\u308f\u308c\u308b\u4e3b\u306a\u30b7\u30fc\u30f3\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#fafafa;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #dc2626;\">\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u306e\u9ad8\u901f\u51e6\u7406<\/strong>\uff1aIoT\u30c7\u30d0\u30a4\u30b9\u304b\u3089\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30c7\u30fc\u30bf\u3092C\u8a00\u8a9e\u3067\u524d\u51e6\u7406\u3057\u3066AI\u306b\u6e21\u3059<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u30d0\u30c3\u30c1\u51e6\u7406\u306e\u9ad8\u901f\u5316<\/strong>\uff1a\u5927\u91cf\u30c7\u30fc\u30bf\u306e\u30bd\u30fc\u30c8\u30fb\u96c6\u8a08\u306fPython\u3088\u308a\u9ad8\u901f\u306aC\u3067\u5b9f\u88c5<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u7d44\u307f\u8fbc\u307f\u5236\u5fa1<\/strong>\uff1a\u88fd\u9020\u696d\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306eFA\uff08\u30d5\u30a1\u30af\u30c8\u30ea\u30fc\u30aa\u30fc\u30c8\u30e1\u30fc\u30b7\u30e7\u30f3\uff09\u5236\u5fa1\u30d7\u30ed\u30b0\u30e9\u30e0<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb<\/strong>\uff1aPython\u304b\u3089C\u8a00\u8a9e\u306e\u9ad8\u901f\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059Python\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\uff08Cython\uff09\u306e\u4f5c\u6210<\/span><\/div>\n\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">11-2. for\u6587\u3092\u4f7f\u3063\u305f\u30c7\u30fc\u30bf\u524d\u51e6\u7406\u306e\u5b9f\u4f8b<\/h3>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">C<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\">\/*\n * \u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u306e\u79fb\u52d5\u5e73\u5747\u3092\u8a08\u7b97\u3059\u308bC\u8a00\u8a9e\u30b3\u30fc\u30c9\n * GENAI\u306eIoT\u9023\u643a\u30b7\u30b9\u30c6\u30e0\u3067\u4f7f\u7528\u3059\u308b\u30d1\u30bf\u30fc\u30f3\n *\/\n#include &lt;stdio.h&gt;\n\n#define DATA_SIZE 100\n#define WINDOW     5\n\nvoid moving_average(double *data, double *result, int size, int window) {\n    int i, j;\n    double sum;\n\n    for (i = 0; i &lt; size - window + 1; i++) {\n        sum = 0.0;\n        for (j = 0; j &lt; window; j++) {\n            sum += data[i + j];\n        }\n        result[i] = sum \/ window;\n    }\n}\n\nint main(void) {\n    double sensor_data[DATA_SIZE] = { \/* \u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf *\/ 0 };\n    double avg_data[DATA_SIZE] = {0};\n\n    moving_average(sensor_data, avg_data, DATA_SIZE, WINDOW);\n    printf(&quot;\u79fb\u52d5\u5e73\u5747\u8a08\u7b97\u5b8c\u4e86\\n&quot;);\n    return 0;\n}<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30b3\u30fc\u30c9\u306e moving_average \u95a2\u6570\u306f\u4e8c\u91cdfor\u6587\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002\u5916\u5074\u306efor\u6587\u304c\u300c\u7a93\u306e\u4f4d\u7f6e\u300d\u3092\u79fb\u52d5\u3055\u305b\u3001\u5185\u5074\u306efor\u6587\u304c\u300c\u5404\u7a93\u5185\u306e\u5408\u8a08\u300d\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002for\u6587\u306e\u30cd\u30b9\u30c8\u304c\u5b9f\u969b\u306e\u30c7\u30fc\u30bf\u51e6\u7406\u3067\u3069\u3046\u4f7f\u308f\u308c\u308b\u304b\u304c\u78ba\u8a8d\u3067\u304d\u308b\u5b9f\u7528\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">11-3. C\u8a00\u8a9e\u30b9\u30ad\u30eb\u3092AI\u6642\u4ee3\u306b\u6d3b\u304b\u3059<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u300cAI\u5168\u76db\u671f\u306bC\u8a00\u8a9e\u3092\u5b66\u3076\u610f\u5473\u306f\u3042\u308b\u306e\u304b\u300d\u3068\u3044\u3046\u7591\u554f\u3092\u6301\u3064\u65b9\u3082\u3044\u308b\u3067\u3057\u3087\u3046\u3002GENAI\u306e\u898b\u89e3\u3068\u3057\u3066\u3001C\u8a00\u8a9e\u306e\u5b66\u7fd2\u306f<strong>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u672c\u8cea\u3092\u7406\u89e3\u3059\u308b\u4e0a\u3067\u4eca\u3067\u3082\u975e\u5e38\u306b\u6709\u52b9<\/strong>\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#fafafa;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #dc2626;\">\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>\u30e1\u30e2\u30ea\u7ba1\u7406\u30fb\u30dd\u30a4\u30f3\u30bf\u306e\u7406\u89e3\u304c\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3084OS\u306e\u52d5\u4f5c\u7406\u89e3\u306b\u76f4\u7d50\u3059\u308b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>C\u8a00\u8a9e\u3067\u66f8\u3051\u308b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u4ed6\u306e\u8a00\u8a9e\u3067\u3082\u5bb9\u6613\u306b\u5b9f\u88c5\u3067\u304d\u308b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>\u7d44\u307f\u8fbc\u307f\u30fb\u88fd\u9020DX\u5206\u91ce\u3067\u306fC\u8a00\u8a9e\u30b9\u30ad\u30eb\u304c\u4eca\u3082\u9ad8\u3044\u9700\u8981\u3092\u6301\u3064<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>Claude Code\u306a\u3069\u306eAI\u30c4\u30fc\u30eb\u3092\u4f7f\u3048\u3070\u3001C\u8a00\u8a9e\u306e\u30b3\u30fc\u30c9\u751f\u6210\u30fb\u30c7\u30d0\u30c3\u30b0\u304c\u683c\u6bb5\u306b\u52b9\u7387\u5316\u3055\u308c\u308b<\/span><\/div>\n\n<\/div>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">C\u8a00\u8a9e\u3092\u5b66\u3076\u3053\u3068\u306f\u300c\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u57fa\u790e\u4f53\u529b\u3092\u935b\u3048\u308b\u300d\u3053\u3068\u3068\u540c\u7fa9\u3067\u3059\u3002\u5909\u6570\u30fb\u914d\u5217\u30fb\u30eb\u30fc\u30d7\u30fb\u95a2\u6570\u3068\u3044\u3046C\u8a00\u8a9e\u306e\u6982\u5ff5\u306f\u3001Python\u30fbJava\u30fbJavaScript\u3059\u3079\u3066\u306e\u57fa\u76e4\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002C\u8a00\u8a9e\u3092\u30de\u30b9\u30bf\u30fc\u3057\u305f\u4eba\u306f\u4ed6\u306e\u8a00\u8a9e\u306e\u7fd2\u5f97\u3082\u65e9\u3044\u3067\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-c-for-loop&#038;blog_slug=cc-c-for-loop\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=cc-c-for-loop&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-12\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">12<\/span>\n  <span class=\"section-label\" style=\"display:block;\">CLAUDE CODE<\/span>\n  <span class=\"section-title\" style=\"display:block;\">Claude Code\u306bC\u8a00\u8a9e\u306efor\u6587\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3055\u305b\u308b<\/span>\n  <span class=\"section-desc\">AI\u3092\u6d3b\u7528\u3057\u3066C\u8a00\u8a9e\u306e\u5b66\u7fd2\u30fb\u958b\u767a\u3092\u52a0\u901f\u3059\u308b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u307e\u3067for\u6587\u306e\u66f8\u304d\u65b9\u3092\u89e3\u8aac\u3057\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u5b9f\u969b\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u73fe\u5834\u3067\u306f<strong>AI\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\u3092\u6d3b\u7528\u3057\u3066\u30b3\u30fc\u30c9\u3092\u81ea\u52d5\u751f\u6210<\/strong>\u3059\u308b\u5834\u9762\u304c\u5897\u3048\u3066\u3044\u307e\u3059\u3002\u7279\u306b<strong>Claude Code<\/strong>\u306fC\u8a00\u8a9e\u306e\u30b3\u30fc\u30c9\u751f\u6210\u30fb\u8aac\u660e\u30fb\u30c7\u30d0\u30c3\u30b0\u306b\u304a\u3044\u3066\u975e\u5e38\u306b\u512a\u79c0\u306aAI\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">12-1. Claude Code\u3067for\u6587\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3059\u308b\u30d7\u30ed\u30f3\u30d7\u30c8\u4f8b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Claude Code\u306b\u5bfe\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30d7\u30ed\u30f3\u30d7\u30c8\u3067C\u8a00\u8a9e\u306efor\u6587\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">TEXT<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\"># Claude Code\u3078\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u4f8b\n\n\u300cC\u8a00\u8a9e\u3067\u3001\u914d\u5217\u306b\u683c\u7d0d\u3055\u308c\u305f\u5b66\u751f\u306e\u70b9\u6570\u30c7\u30fc\u30bf\u304b\u3089\n\u6700\u9ad8\u70b9\u30fb\u6700\u4f4e\u70b9\u30fb\u5e73\u5747\u70b9\u3092\u8a08\u7b97\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u304f\u3060\u3055\u3044\u3002\nfor\u6587\u3092\u4f7f\u3063\u3066\u914d\u5217\u3092\u8d70\u67fb\u3057\u3001\u30b3\u30e1\u30f3\u30c8\u3092\u65e5\u672c\u8a9e\u3067\u8a18\u5165\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u300d<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u5bfe\u3057\u3066Claude Code\u304c\u751f\u6210\u3059\u308b\u30b3\u30fc\u30c9\u306f\u3001\u5148\u307b\u3069\u7d39\u4ecb\u3057\u305f\u300c\u6700\u5927\u5024\u63a2\u7d22\u300d\u306e\u5b9f\u7528\u7248\u3067\u3059\u3002\u5b66\u7fd2\u6bb5\u968e\u3067\u300c\u3053\u3046\u3044\u3046\u51e6\u7406\u3092\u66f8\u304d\u305f\u3044\u304c\u66f8\u304d\u65b9\u304c\u308f\u304b\u3089\u306a\u3044\u300d\u3068\u3044\u3046\u3068\u304d\u306b\u3001Claude Code\u306b\u96db\u5f62\u3092\u751f\u6210\u3055\u305b\u3066\u304b\u3089\u7406\u89e3\u3059\u308b\u3001\u3068\u3044\u3046\u4f7f\u3044\u65b9\u304c\u52b9\u679c\u7684\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">12-2. for\u6587\u306e\u30c7\u30d0\u30c3\u30b0\u3092Claude Code\u306b\u4f9d\u983c\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">for\u6587\u306e\u30d0\u30b0\u306f\u521d\u5fc3\u8005\u304c\u8a70\u307e\u308a\u3084\u3059\u3044\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002\u7279\u306b\u300c\u7121\u9650\u30eb\u30fc\u30d7\u300d\u300c\u914d\u5217\u306e\u5883\u754c\u5916\u30a2\u30af\u30bb\u30b9\u300d\u300cbreak\u3068continue\u306e\u6df7\u540c\u300d\u306a\u3069\u306f\u767a\u898b\u304c\u96e3\u3057\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:12px;color:#6272a4;margin-bottom:8px;font-family:monospace;\">TEXT<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1.8;color:#cdd6f4;white-space:pre;\"># \u30c7\u30d0\u30c3\u30b0\u30d7\u30ed\u30f3\u30d7\u30c8\u4f8b\n\n\u300c\u4ee5\u4e0b\u306eC\u8a00\u8a9e\u30b3\u30fc\u30c9\u304c\u7121\u9650\u30eb\u30fc\u30d7\u306b\u306a\u308a\u307e\u3059\u3002\u539f\u56e0\u3068\u4fee\u6b63\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002\n\nint i = 0;\nfor (i = 0; i == 10; i++) {\n    printf(&quot;%d\\n&quot;, i);\n}\u300d<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Claude Code\u306f\u300ci == 10 \u306f\u4ee3\u308f\u308a\u306b i < 10 \u307e\u305f\u306f i != 10 \u306b\u3059\u3079\u304d\u3002\u6761\u4ef6\u5f0f\u306b == \u3092\u4f7f\u3046\u3068 i \u304c\u521d\u671f\u5024 0 \u306e\u3068\u304d\u6761\u4ef6\u304c\u507d\u306b\u306a\u308a\u3001\u30eb\u30fc\u30d7\u306b\u5165\u3089\u306a\u3044\u300d\u3068\u6b63\u78ba\u306b\u56de\u7b54\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">12-3. Claude Code\u3092\u4f7f\u3063\u305fC\u8a00\u8a9e\u5b66\u7fd2\u30ed\u30fc\u30c9\u30de\u30c3\u30d7<\/h3>\n\n\n\n<div class=\"g-flow-row\" style=\"margin:24px 0;\">\n  <div class=\"g-flow-item\">\u57fa\u672c\u69cb\u6587\u3092Claude Code\u3067\u78ba\u8a8d<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u81ea\u5206\u3067\u5199\u7d4c\u30fb\u5b9f\u884c<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">\u8ab2\u984c\u3092Claude Code\u306b\u63d0\u793a\u3057\u3066\u8aac\u660e<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">\u81ea\u529b\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u304f<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">Claude Code\u3067\u30ec\u30d3\u30e5\u30fc\u30fb\u6539\u5584<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30b5\u30a4\u30af\u30eb\u3092\u7e70\u308a\u8fd4\u3059\u3053\u3068\u3067\u3001\u5f93\u6765\u306e\u53c2\u8003\u66f8\u5b66\u7fd2\u3088\u308a\u3082<strong>3\u301c5\u500d\u901f\u304fC\u8a00\u8a9e\u3092\u7fd2\u5f97<\/strong>\u3067\u304d\u307e\u3059\u3002\u308f\u304b\u3089\u306a\u3044\u70b9\u306f\u305d\u306e\u5834\u3067Claude Code\u306b\u805e\u3051\u308b\u305f\u3081\u3001\u300c\u8a70\u307e\u3063\u3066\u6642\u9593\u3092\u7121\u99c4\u306b\u3059\u308b\u300d\u3053\u3068\u304c\u5927\u5e45\u306b\u6e1b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">12-4. Claude Code\u304c\u5f97\u610f\u306aC\u8a00\u8a9e\u306e\u652f\u63f4\u30bf\u30b9\u30af<\/h3>\n\n\n\n<div style=\"background:#fafafa;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #dc2626;\">\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u30b3\u30fc\u30c9\u751f\u6210<\/strong>\uff1a\u300c\u3007\u3007\u3092\u3059\u308bC\u8a00\u8a9e\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u300d\u3067\u307b\u307c\u5373\u5ea7\u306b\u52d5\u304f\u30b3\u30fc\u30c9\u304c\u5f97\u3089\u308c\u308b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u30a8\u30e9\u30fc\u8aac\u660e<\/strong>\uff1a\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u3092\u305d\u306e\u307e\u307e\u30b3\u30d4\u30da\u3057\u3066\u300c\u306a\u305c\uff1f\u300d\u3068\u805e\u304f\u3060\u3051\u3067\u539f\u56e0\u3068\u4fee\u6b63\u6cd5\u3092\u89e3\u8aac<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u89e3\u8aac<\/strong>\uff1a\u300c\u3053\u306efor\u6587\u306f\u3069\u3046\u3044\u3046\u52d5\u4f5c\u3092\u3059\u308b\u304b\u65e5\u672c\u8a9e\u3067\u8aac\u660e\u3057\u3066\u300d\u3067\u7406\u89e3\u3092\u6df1\u3081\u308b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc<\/strong>\uff1a\u66f8\u3044\u305f\u30b3\u30fc\u30c9\u3092Claude Code\u306b\u898b\u305b\u308b\u3068\u6539\u5584\u70b9\u3084\u3088\u308a\u826f\u3044\u66f8\u304d\u65b9\u3092\u63d0\u6848<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u6700\u9069\u5316<\/strong>\uff1a\u300c\u3053\u306e\u30cd\u30b9\u30c8\u30eb\u30fc\u30d7\u3092\u3088\u308a\u52b9\u7387\u7684\u306b\u66f8\u304d\u63db\u3048\u3066\u300d\u3067\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6539\u5584<\/span><\/div>\n\n<\/div>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">GENAI\u3067\u306f\u65b0\u3057\u3044\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3092\u7fd2\u5f97\u3059\u308b\u969b\u306bClaude Code\u3092\u7a4d\u6975\u6d3b\u7528\u3057\u3066\u3044\u307e\u3059\u3002C\u8a00\u8a9e\u306e\u30dd\u30a4\u30f3\u30bf\u3084\u69cb\u9020\u4f53\u306a\u3069\u300c\u672c\u3067\u8aad\u3093\u3067\u3082\u308f\u304b\u308a\u306b\u304f\u3044\u6982\u5ff5\u300d\u3092\u5177\u4f53\u7684\u306a\u30b3\u30fc\u30c9\u4f8b\u3068\u4e00\u7dd2\u306b\u8aac\u660e\u3057\u3066\u3082\u3089\u3048\u308b\u306e\u304c\u5927\u304d\u306a\u5f37\u307f\u3067\u3059\u3002<\/div>\n<\/div>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">C\u8a00\u8a9e\u3092\u5b8c\u5168\u306b\u72ec\u5b66\u3067\u5b66\u307c\u3046\u3068\u3059\u308b\u3068\u3001\u7279\u306b\u30dd\u30a4\u30f3\u30bf\u5468\u308a\u3067\u591a\u304f\u306e\u65b9\u304c\u632b\u6298\u3057\u307e\u3059\u3002Claude Code\u3092\u30e1\u30f3\u30bf\u30fc\u3068\u3057\u3066\u4f7f\u3046\u3053\u3068\u3067\u3001\u7591\u554f\u3092\u305d\u306e\u5834\u3067\u89e3\u6d88\u3057\u306a\u304c\u3089\u5b66\u7fd2\u3067\u304d\u307e\u3059\u3002\u5f93\u6765\u306e\u5b66\u7fd2\u74b0\u5883\u3068\u306f\u96f2\u6ce5\u306e\u5dee\u3067\u3059\u3002<\/div>\n<\/div>\n\n\n\n<div style=\"background:linear-gradient(135deg,#1a1a1a,#2a1015);border-radius:12px;padding:20px 24px;margin:24px 0;display:flex;align-items:center;gap:16px;color:#fff;\">\n  <span style=\"font-size:36px;\">&#127942;<\/span>\n  <div>\n    <div style=\"font-size:13px;color:#dc2626;font-weight:700;letter-spacing:1px;\">VERDICT<\/div>\n    <div style=\"font-size:18px;font-weight:800;\">Claude \u306b\u8ecd\u914d<\/div>\n    <div style=\"font-size:14px;color:rgba(255,255,255,0.7);margin-top:4px;\">Claude Code\u306ffor\u6587\u30fb\u30dd\u30a4\u30f3\u30bf\u30fb\u69cb\u9020\u4f53\u306a\u3069C\u8a00\u8a9e\u306e\u96e3\u6240\u3092\u7684\u78ba\u306b\u89e3\u8aac\u3057\u3066\u304f\u308c\u308b\u6700\u9ad8\u306e\u5b66\u7fd2\u30d1\u30fc\u30c8\u30ca\u30fc\u3002\u81ea\u529b\u3067\u66f8\u3044\u305f\u30b3\u30fc\u30c9\u306e\u30ec\u30d3\u30e5\u30fc\u306b\u3082\u4f7f\u3048\u308b\u3002<\/div>\n  <\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-c-for-loop&#038;blog_slug=cc-c-for-loop\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=cc-c-for-loop&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"faq\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">13<\/span>\n  <span class=\"section-label\" style=\"display:block;\">FAQ<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u3088\u304f\u3042\u308b\u8cea\u554f<\/span>\n  <span class=\"section-desc\">C\u8a00\u8a9e\u306efor\u6587\u306b\u3064\u3044\u3066\u306e\u7591\u554f\u3092\u89e3\u6d88<\/span>\n<\/h2>\n\n\n\n<div style=\"background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:20px 24px;margin:16px 0;\">\n  <p style=\"font-size:15px;font-weight:700;color:#1a1a1a;margin:0 0 10px;display:flex;gap:10px;align-items:flex-start;\">\n    <span style=\"color:#dc2626;font-size:18px;flex-shrink:0;\">Q.<\/span>\n    <span>C\u8a00\u8a9e\u306efor\u6587\u3067\u300ci = 0\u300d\u304b\u3089\u59cb\u3081\u308b\u306e\u304b\u300ci = 1\u300d\u304b\u3089\u59cb\u3081\u308b\u306e\u304b\u308f\u304b\u308a\u307e\u305b\u3093\u3002<\/span>\n  <\/p>\n  <p style=\"font-size:15px;line-height:1.8;color:#333;margin:0;display:flex;gap:10px;align-items:flex-start;\">\n    <span style=\"color:#2563eb;font-size:18px;font-weight:700;flex-shrink:0;\">A.<\/span>\n    <span>\u914d\u5217\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f0\u304b\u3089\u59cb\u307e\u308b\uff08\u6700\u521d\u306e\u8981\u7d20\u306f arr[0]\uff09\u305f\u3081\u3001\u914d\u5217\u3092\u64cd\u4f5c\u3059\u308bfor\u6587\u306f i = 0 \u304b\u3089\u59cb\u3081\u307e\u3059\u3002\u300c1\u304b\u3089N\u307e\u3067\u306e\u51e6\u7406\u300d\u306e\u3088\u3046\u306b\u4eba\u9593\u306e\u6570\u3048\u65b9\u306b\u5408\u308f\u305b\u308b\u5834\u5408\u306f i = 1 \u304b\u3089\u59cb\u3081\u307e\u3059\u3002\u30b3\u30fc\u30c9\u306e\u76ee\u7684\u3092\u5148\u306b\u660e\u78ba\u306b\u3057\u3066\u304b\u3089\u521d\u671f\u5024\u3092\u6c7a\u3081\u308b\u7fd2\u6163\u3092\u4ed8\u3051\u307e\u3057\u3087\u3046\u3002<\/span>\n  <\/p>\n<\/div>\n\n\n\n<div style=\"background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:20px 24px;margin:16px 0;\">\n  <p style=\"font-size:15px;font-weight:700;color:#1a1a1a;margin:0 0 10px;display:flex;gap:10px;align-items:flex-start;\">\n    <span style=\"color:#dc2626;font-size:18px;flex-shrink:0;\">Q.<\/span>\n    <span>for\u6587\u306e\u4e2d\u3067\u5909\u6570\u3092\u5ba3\u8a00\u3067\u304d\u307e\u3059\u304b\uff1f<\/span>\n  <\/p>\n  <p style=\"font-size:15px;line-height:1.8;color:#333;margin:0;display:flex;gap:10px;align-items:flex-start;\">\n    <span style=\"color:#2563eb;font-size:18px;font-weight:700;flex-shrink:0;\">A.<\/span>\n    <span>C99\u4ee5\u964d\u306e\u898f\u683c\u3067\u306f for (int i = 0; i < 10; i++) \u306e\u3088\u3046\u306b\u521d\u671f\u5316\u5f0f\u5185\u3067\u5909\u6570\u3092\u5ba3\u8a00\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001C89\/C90\u898f\u683c\uff08\u53e4\u3044\u898f\u683c\uff09\u3067\u306f\u95a2\u6570\u5192\u982d\u3067\u306e\u5ba3\u8a00\u304c\u5fc5\u8981\u3067\u3059\u3002\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3084\u5bfe\u8c61\u74b0\u5883\u306e\u898f\u683c\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002GCC\u3067\u306f -std=c99 \u307e\u305f\u306f -std=c11 \u30aa\u30d7\u30b7\u30e7\u30f3\u3067C99\/C11\u898f\u683c\u304c\u6709\u52b9\u306b\u306a\u308a\u307e\u3059\u3002<\/span>\n  <\/p>\n<\/div>\n\n\n\n<div style=\"background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:20px 24px;margin:16px 0;\">\n  <p style=\"font-size:15px;font-weight:700;color:#1a1a1a;margin:0 0 10px;display:flex;gap:10px;align-items:flex-start;\">\n    <span style=\"color:#dc2626;font-size:18px;flex-shrink:0;\">Q.<\/span>\n    <span>for\u6587\u3068while\u6587\u306f\u3069\u3061\u3089\u3092\u4f7f\u3048\u3070\u3044\u3044\u3067\u3059\u304b\uff1f<\/span>\n  <\/p>\n  <p style=\"font-size:15px;line-height:1.8;color:#333;margin:0;display:flex;gap:10px;align-items:flex-start;\">\n    <span style=\"color:#2563eb;font-size:18px;font-weight:700;flex-shrink:0;\">A.<\/span>\n    <span>\u7e70\u308a\u8fd4\u3057\u56de\u6570\u304c\u4e8b\u524d\u306b\u6c7a\u307e\u3063\u3066\u3044\u308b\u5834\u5408\u306ffor\u6587\u3001\u6761\u4ef6\u304c\u5909\u5316\u3059\u308b\u307e\u3067\u7e70\u308a\u8fd4\u3059\u5834\u5408\u306fwhile\u6587\u304c\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u8aad\u307f\u8fbc\u307f\u30fb\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u5f85\u6a5f\u306a\u3069\u306fwhile\u6587\u3001\u914d\u5217\u51e6\u7406\u30fb\u56fa\u5b9a\u56de\u6570\u306e\u8a08\u7b97\u306ffor\u6587\u3068\u3044\u3046\u306e\u304c\u4e00\u822c\u7684\u306a\u9078\u629e\u57fa\u6e96\u3067\u3059\u3002\u306a\u304a\u3001\u3069\u3061\u3089\u3082\u66f8\u304d\u63db\u3048\u53ef\u80fd\u306a\u306e\u3067\u3001\u30c1\u30fc\u30e0\u306e\u898f\u7d04\u3084\u8aad\u307f\u3084\u3059\u3055\u3092\u512a\u5148\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span>\n  <\/p>\n<\/div>\n\n\n\n<div style=\"background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:20px 24px;margin:16px 0;\">\n  <p style=\"font-size:15px;font-weight:700;color:#1a1a1a;margin:0 0 10px;display:flex;gap:10px;align-items:flex-start;\">\n    <span style=\"color:#dc2626;font-size:18px;flex-shrink:0;\">Q.<\/span>\n    <span>break\u3067\u4e8c\u91cd\u30eb\u30fc\u30d7\uff08\u5916\u5074\u306efor\u6587\uff09\u3092\u4e00\u5ea6\u306b\u629c\u3051\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u304b\uff1f<\/span>\n  <\/p>\n  <p style=\"font-size:15px;line-height:1.8;color:#333;margin:0;display:flex;gap:10px;align-items:flex-start;\">\n    <span style=\"color:#2563eb;font-size:18px;font-weight:700;flex-shrink:0;\">A.<\/span>\n    <span>C\u8a00\u8a9e\u3067\u306f break \u306f\u6700\u3082\u5185\u5074\u306e\u30eb\u30fc\u30d7\u3057\u304b\u629c\u3051\u3089\u308c\u307e\u305b\u3093\u3002\u5916\u5074\u306e\u30eb\u30fc\u30d7\u3082\u629c\u3051\u305f\u3044\u5834\u5408\u306f\u3001\u2460\u30d5\u30e9\u30b0\u5909\u6570\u3092\u7528\u610f\u3057\u3066\u5916\u5074\u306e\u30eb\u30fc\u30d7\u6761\u4ef6\u306b\u7d44\u307f\u8fbc\u3080\u3001\u2461goto\u6587\u3092\u4f7f\u3046\uff08\u975e\u63a8\u5968\uff09\u3001\u2462\u51e6\u7406\u3092\u95a2\u6570\u306b\u5206\u3051\u3066return\u3067\u629c\u3051\u308b\u3068\u3044\u3046\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u5b9f\u52d9\u3067\u306f\u30d5\u30e9\u30b0\u5909\u6570\u307e\u305f\u306f\u95a2\u6570\u5316\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<\/span>\n  <\/p>\n<\/div>\n\n\n\n<div style=\"background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:20px 24px;margin:16px 0;\">\n  <p style=\"font-size:15px;font-weight:700;color:#1a1a1a;margin:0 0 10px;display:flex;gap:10px;align-items:flex-start;\">\n    <span style=\"color:#dc2626;font-size:18px;flex-shrink:0;\">Q.<\/span>\n    <span>for\u6587\u306e\u7121\u9650\u30eb\u30fc\u30d7 for(;;) \u3068 while(1) \u306e\u9055\u3044\u306f\u3042\u308a\u307e\u3059\u304b\uff1f<\/span>\n  <\/p>\n  <p style=\"font-size:15px;line-height:1.8;color:#333;margin:0;display:flex;gap:10px;align-items:flex-start;\">\n    <span style=\"color:#2563eb;font-size:18px;font-weight:700;flex-shrink:0;\">A.<\/span>\n    <span>\u52d5\u4f5c\u7684\u306b\u306f\u540c\u4e00\u3067\u3001\u3069\u3061\u3089\u3082\u6c38\u9060\u306b\u7e70\u308a\u8fd4\u3059\u7121\u9650\u30eb\u30fc\u30d7\u3092\u4f5c\u308a\u307e\u3059\u3002\u30b3\u30f3\u30d1\u30a4\u30e9\u304c\u751f\u6210\u3059\u308b\u30b3\u30fc\u30c9\u3082\u901a\u5e38\u306f\u540c\u3058\u3067\u3059\u3002\u9055\u3044\u306f\u300c\u66f8\u304d\u65b9\u306e\u30b9\u30bf\u30a4\u30eb\u300d\u306e\u307f\u3067\u3059\u3002\u7d44\u307f\u8fbc\u307f\u958b\u767a\u3067\u306f while(1)\u3001\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u306f for(;;) \u304c\u597d\u307e\u308c\u308b\u50be\u5411\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u898f\u7d04\u306b\u5f93\u3046\u306e\u304c\u6700\u5584\u3067\u3059\u3002<\/span>\n  <\/p>\n<\/div>\n\n\n\n<div style=\"background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:20px 24px;margin:16px 0;\">\n  <p style=\"font-size:15px;font-weight:700;color:#1a1a1a;margin:0 0 10px;display:flex;gap:10px;align-items:flex-start;\">\n    <span style=\"color:#dc2626;font-size:18px;flex-shrink:0;\">Q.<\/span>\n    <span>Claude Code\u3067C\u8a00\u8a9e\u306e\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u3082\u3089\u3046\u305f\u3081\u306e\u30b3\u30c4\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/span>\n  <\/p>\n  <p style=\"font-size:15px;line-height:1.8;color:#333;margin:0;display:flex;gap:10px;align-items:flex-start;\">\n    <span style=\"color:#2563eb;font-size:18px;font-weight:700;flex-shrink:0;\">A.<\/span>\n    <span>\u2460\u300c\u4f55\u3092\u3057\u305f\u3044\u304b\u300d\u3092\u65e5\u672c\u8a9e\u3067\u660e\u78ba\u306b\u8aac\u660e\u3059\u308b\u3001\u2461\u300cfor\u6587\u3092\u4f7f\u3063\u3066\u300d\u300c\u30b3\u30e1\u30f3\u30c8\u3092\u65e5\u672c\u8a9e\u3067\u300d\u306a\u3069\u5236\u7d04\u6761\u4ef6\u3092\u6307\u5b9a\u3059\u308b\u3001\u2462\u51fa\u529b\u4f8b\u3084\u671f\u5f85\u3059\u308b\u5165\u529b\u30fb\u51fa\u529b\u3092\u5177\u4f53\u7684\u306b\u4f1d\u3048\u308b\u3053\u3068\u304c\u52b9\u679c\u7684\u3067\u3059\u3002\u307e\u305f\u3001\u751f\u6210\u3055\u308c\u305f\u30b3\u30fc\u30c9\u304c\u52d5\u304b\u306a\u3044\u5834\u5408\u306f\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u305d\u306e\u307e\u307eClaude Code\u306b\u898b\u305b\u308b\u3060\u3051\u3067\u4fee\u6b63\u65b9\u6cd5\u3092\u63d0\u793a\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/span>\n  <\/p>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-c-for-loop&#038;blog_slug=cc-c-for-loop\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=cc-c-for-loop&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081\uff1aC\u8a00\u8a9e\u306efor\u6587\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3066\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u529b\u3092\u4f38\u3070\u305d\u3046<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001C\u8a00\u8a9e\u306efor\u6587\u306b\u3064\u3044\u3066\u6b21\u306e\u3053\u3068\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div style=\"background:#fafafa;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #dc2626;\">\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>for\u6587\u306e\u57fa\u672c\u69cb\u6587<\/strong>\uff1a\u521d\u671f\u5316\u30fb\u6761\u4ef6\u30fb\u66f4\u65b0\u306e3\u8981\u7d20\u3068\u5b9f\u884c\u306e\u6d41\u308c<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/strong>\uff1a1\u301c100\u306e\u5408\u8a08\u3001\u4e5d\u4e5d\u306e\u8868\u3001\u30ab\u30a6\u30f3\u30c8\u30c0\u30a6\u30f3<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u4e8c\u91cd\u30eb\u30fc\u30d7<\/strong>\uff1a2\u6b21\u5143\u914d\u5217\u30fb\u884c\u5217\u51e6\u7406\u3067\u306e\u30cd\u30b9\u30c8for\u6587<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u7121\u9650\u30eb\u30fc\u30d7 for(;;)<\/strong>\uff1abreak\u6587\u3068\u7d44\u307f\u5408\u308f\u305b\u305f\u6b63\u3057\u3044\u4f7f\u3044\u65b9<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>break\u6587<\/strong>\uff1a\u914d\u5217\u63a2\u7d22\u30fb\u30cd\u30b9\u30c8\u30eb\u30fc\u30d7\u8131\u51fa\u3067\u306e\u6d3b\u7528\u30d1\u30bf\u30fc\u30f3<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>continue\u6587<\/strong>\uff1a\u7279\u5b9a\u6761\u4ef6\u306e\u30b9\u30ad\u30c3\u30d7\u30fb\u30c7\u30fc\u30bf\u524d\u51e6\u7406\u3067\u306e\u6d3b\u7528<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u914d\u5217\u64cd\u4f5c<\/strong>\uff1a\u5168\u8981\u7d20\u8d70\u67fb\u30fb\u6700\u5927\u5024\u63a2\u7d22\u30fb\u6587\u5b57\u5217\u51e6\u7406<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>for\u6587 vs while\u6587<\/strong>\uff1a\u72b6\u6cc1\u5225\u306e\u9078\u629e\u57fa\u6e96<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u7701\u7565\u69cb\u6587<\/strong>\uff1a\u521d\u671f\u5316\u5b50\u306a\u3057\u30fb\u66f4\u65b0\u306a\u3057\u306e\u67d4\u8edf\u306afor\u6587<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>Claude Code\u306e\u6d3b\u7528<\/strong>\uff1aC\u8a00\u8a9e\u30b3\u30fc\u30c9\u306e\u81ea\u52d5\u751f\u6210\u30fb\u30c7\u30d0\u30c3\u30b0\u30fb\u5b66\u7fd2<\/strong><\/span><\/div>\n\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">C\u8a00\u8a9e\u306efor\u6587\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u57fa\u790e\u529b\u3092\u554f\u3046\u6700\u91cd\u8981\u69cb\u6587\u306e\u3072\u3068\u3064\u3067\u3059\u3002\u672c\u8a18\u4e8b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u969b\u306b\u624b\u5143\u3067\u52d5\u304b\u3057\u3066\u3001\u5404\u30d1\u30bf\u30fc\u30f3\u306e\u52d5\u4f5c\u3092\u4f53\u3067\u899a\u3048\u308b\u3053\u3068\u304c\u4e0a\u9054\u3078\u306e\u8fd1\u9053\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u3057\u3066\u3001\u5b66\u7fd2\u306e\u4e2d\u3067\u7591\u554f\u304c\u751f\u307e\u308c\u305f\u3068\u304d\u306f<strong>Claude Code<\/strong>\u3092\u7a4d\u6975\u7684\u306b\u6d3b\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u300c\u306a\u305c\u3053\u3046\u306a\u308b\u306e\uff1f\u300d\u300c\u3082\u3063\u3068\u826f\u3044\u66f8\u304d\u65b9\u306f\uff1f\u300d\u3068\u3044\u3046\u8cea\u554f\u306b\u3001Claude Code\u306f\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u7684\u78ba\u306a\u56de\u7b54\u3092\u51fa\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">for\u6587\u3092\u30de\u30b9\u30bf\u30fc\u3057\u305f\u5148\u306b\u306f\u3001\u30dd\u30a4\u30f3\u30bf\u30fb\u69cb\u9020\u4f53\u30fb\u95a2\u6570\u30dd\u30a4\u30f3\u30bf\u3068C\u8a00\u8a9e\u306e\u9762\u767d\u3044\u4e16\u754c\u304c\u5e83\u304c\u3063\u3066\u3044\u307e\u3059\u3002\u4eca\u65e5\u5b66\u3093\u3060for\u6587\u306e\u5fdc\u7528\u30d1\u30bf\u30fc\u30f3\u306f\u5fc5\u305a\u305d\u3053\u3067\u3082\u6d3b\u304d\u3066\u304d\u307e\u3059\u3002\u305c\u3072\u7d99\u7d9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">AI\u9b3c\u7ba1\u7406\u3067\u306f\u3001Claude Code\u3092\u6d3b\u7528\u3057\u305f\u696d\u52d9\u81ea\u52d5\u5316\u306e\u5b9f\u8df5\u4f8b\u3092\u5f15\u304d\u7d9a\u304d\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002C\u8a00\u8a9e\u306b\u9650\u3089\u305a\u3001AI\u3092\u4f7f\u3063\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u52a0\u901f\u65b9\u6cd5\u3082\u4eca\u5f8c\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/div>\n<\/div>\n\n\n","protected":false},"excerpt":{"rendered":"<p>C\u8a00\u8a9e\u306efor\u6587\u306e\u57fa\u672c\u69cb\u6587\u304b\u3089\u3001break\u30fbcontinue\u6587\u306b\u3088\u308b\u30eb\u30fc\u30d7\u5236\u5fa1\u3001\u4e8c\u91cd\u30eb\u30fc\u30d7\u3001\u7121\u9650\u30eb\u30fc\u30d7\u307e\u3067\u5fb9\u5e95\u89e3\u8aac\u3002Claude Code\u3067\u30b3\u30fc\u30c9\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\u65b9\u6cd5\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":18270,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sitemap_hide":"","_veu_custom_css":"","vkexunit_cta_each_option":"","footnotes":"","rank_math_description":"C\u8a00\u8a9e\u306efor\u6587\u306e\u57fa\u672c\u69cb\u6587\u304b\u3089\u3001break\u30fbcontinue\u6587\u306b\u3088\u308b\u30eb\u30fc\u30d7\u5236\u5fa1\u3001\u4e8c\u91cd\u30eb\u30fc\u30d7\u3001\u7121\u9650\u30eb\u30fc\u30d7\u307e\u3067\u5fb9\u5e95\u89e3\u8aac\u3002Claude Code\u3067\u30b3\u30fc\u30c9\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\u65b9\u6cd5\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002","rank_math_focus_keyword":"C\u8a00\u8a9e for\u6587","rank_math_title":"","pending_rewrite_html":"","pending_rewrite_id":"","pending_rewrite_kw":"","pending_rewrite_at":"","pending_rewrite_source":"","pending_rewrite_brief":"","pending_rewrite_evidence":"","approved_rewrite_html":"","approved_rewrite_id":"","approved_rewrite_kw":"","approved_rewrite_at":"","approved_rewrite_by":"","approved_rewrite_brief":"","approved_rewrite_evidence":"","rewrite_tracker_baseline":"","rewrite_tracker_7day":"","rewrite_tracker_14day":"","rewrite_tracker_30day":"","rewrite_tracker_notified":""},"categories":[3],"tags":[],"class_list":["post-18271","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-automation"],"_links":{"self":[{"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts\/18271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/comments?post=18271"}],"version-history":[{"count":1,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts\/18271\/revisions"}],"predecessor-version":[{"id":18272,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts\/18271\/revisions\/18272"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/media\/18270"}],"wp:attachment":[{"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/media?parent=18271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/categories?post=18271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/tags?post=18271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}