{"id":5806,"date":"2015-05-21T18:18:43","date_gmt":"2015-05-21T09:18:43","guid":{"rendered":"http:\/\/programminglanguage7.com\/?p=5806"},"modified":"2015-05-21T18:18:43","modified_gmt":"2015-05-21T09:18:43","slug":"post-5806","status":"publish","type":"post","link":"https:\/\/programminglanguage7.com\/?p=5806","title":{"rendered":"for\u3068if\u3068break\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u304a\u3046"},"content":{"rendered":"<p><span style=\"font-size: 14pt;\">\u3053\u306e\u7ae0\u3067\u8aac\u660e\u3059\u308b\u3053\u3068\u306ffor\u6587\u306e\u4e2d\u3067if\u6587\u3092\u4f7f\u3046\u3053\u3068\u3068\u3001\u3055\u3089\u306b\u306ffor\u6587\u306e\u4e2d\u3067\u300c\u5f37\u5236\u7684\u306b\u7e70\u308a\u8fd4\u3057\u6587\u3092\u7d42\u4e86\u3055\u305b\u305f\u3044\u6642\u306b\u4f7f\u7528\u3059\u308bbreak\u300d\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">break\u306f\u3001\u73fe\u5728\u5b9f\u884c\u4e2d\u306e \u7e70\u308a\u8fd4\u3057\u6587\u306e\u5b9f\u884c\u3092\u5f37\u5236\u7684\u306b\u7d42\u4e86\u3055\u305b\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3067\u306f\u4f8b\u3092\u307f\u3066\u307f\u307e\u3057\u3087\u3046\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14349.jpg\"><br \/>\n<\/a><\/span><a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14349.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-5808\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14349-300x235.jpg\" alt=\"1\" width=\"319\" height=\"250\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14349-300x235.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14349.jpg 476w\" sizes=\"(max-width: 319px) 100vw, 319px\" \/><\/a><a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14350.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-5809\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14350-300x102.jpg\" alt=\"1\" width=\"335\" height=\"114\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14350-300x102.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14350.jpg 526w\" sizes=\"(max-width: 335px) 100vw, 335px\" \/><\/a> <span style=\"font-size: 14pt;\">\u7d50\u679c\u306f<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14351.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-5810\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14351-300x18.jpg\" alt=\"1\" width=\"300\" height=\"18\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14351-300x18.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14351.jpg 521w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\u3067\u3059\u3002\u3000<\/span><br \/>\n<span style=\"font-size: 14pt;\">for\u6587\u306e\u30d6\u30ed\u30c3\u30af\u306e\u4e2d\u306bif\u6587\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3053\u306e\u3088\u3046\u306bfor\u6587\u306bif\u6587\u3092\u5165\u308c\u308b\u3053\u3068\u3082\u51fa\u6765\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3053\u306e\u4f8b\u306eif\u6587\u306e\u4e2d\u306b\u306fbreak\u304c\u5165\u3063\u3066\u3044\u308b\u306e\u3067\u300c\u3082\u3057\u3001i\u304c4\u306b\u306a\u3063\u305f\u3089for\u30eb\u30fc\u30d7\u3092\u629c\u3051\u307e\u3059\u3088\u300d\u3068\u8a00\u3046\u610f\u5473\u3067\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3067\u3059\u306e\u3067\u3001\u300c4\u3064\u306e\u30ea\u30f3\u30b4\u300d\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u306a\u304f\u30eb\u30fc\u30d7\u3092\u7d42\u4e86\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">break\u306f\u3053\u306e\u3088\u3046\u306b\u300c\u4e00\u9023\u306e\u6d41\u308c\uff08\u30eb\u30fc\u30d7\uff09\u3092\u5f37\u5236\u7684\u306b\u4e2d\u6b62\u3057\u30d6\u30ed\u30c3\u30af\u3092\u629c\u3051\u308b\u300d\u3068\u8a00\u3046\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">i\u304c4\u306b\u306a\u3063\u305f\u6642\u306bfor\u6587\u3092break\u3059\u308b\u306e\u3067\u3001\u305d\u308c\u4ee5\u964d\u306e\u300c4\u3064\u306e\u30ea\u30f3\u30b4\u300d\u300c5\u3064\u306e\u30ea\u30f3\u30b4\u300d\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">for\u6587\u306e\u5165\u308c\u5b50\u306e\u4e2d\u3067break\u3092\u4f7f\u3046\u5834\u5408\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3067\u306f\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14352.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-5811\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14352-300x242.jpg\" alt=\"1\" width=\"300\" height=\"242\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14352-300x242.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14352.jpg 462w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14353.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-5812\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14353-300x148.jpg\" alt=\"1\" width=\"345\" height=\"170\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14353-300x148.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14353.jpg 556w\" sizes=\"(max-width: 345px) 100vw, 345px\" \/><\/a><\/span> <span style=\"font-size: 14pt;\">\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14354.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5813\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14354.jpg\" alt=\"1\" width=\"181\" height=\"227\" \/><\/a><\/span><span style=\"font-size: 14pt;\">\u4e0a\u304b\u30892\u3064\u76ee\u306efor\u306e\u4e2d\u3067break\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c\u30012\u3064\u76ee\u306efor\u306e\u4e2d\u3067break\u3092\u4f7f\u3063\u305f\u5834\u5408break\u3067\u629c\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u306fbreak\u306e\u3042\u308bfor\u6587(\u4f8b\u306e\u5834\u5408\u306f\u4e0a\u304b\u30892\u3064\u76ee)\u3060\u3051\u3067\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3064\u307e\u308a\u4f8b\u306e\u5834\u5408\u306f\u4e0a\u304b\u30892\u3064\u76ee\u306efor\u6587\u306e\u4e2d\u306eif\u6587\u306e\u6761\u4ef6\u90e8\u5206\u304c3\u3092\u8d85\u3048\u305f\u3089\u3001\uff08\u4e0a\u304b\u3089\uff12\u3064\u76ee\u306e\uff09for\u6587\u3092break\u3059\u308b\u306e\u3067\u3059\u304c\u3001break\u3057\u305f\u5f8c\u306f\u307e\u305f\u4e00\u756a\u524d\u306e<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14355.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5814\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14355.jpg\" alt=\"1\" width=\"197\" height=\"32\" \/><\/a>\u306b\u623b\u3063\u3066\u30eb\u30fc\u30d7\u3092\u7e70\u308a\u8fd4\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3067\u3059\u306e\u3067<\/span><br \/>\n<span style=\"font-size: 14pt;\">2\u639b\u3051\u308b2=4<\/span><br \/>\n<span style=\"font-size: 14pt;\">2\u639b\u3051\u308b3=6<\/span><br \/>\n<span style=\"font-size: 14pt;\">3\u639b\u3051\u308b2=6<\/span><br \/>\n<span style=\"font-size: 14pt;\">3\u639b\u3051\u308b3=9<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u306f\u3000if\u306e\u6761\u4ef6\u5f0f(i*j&gt;3)\u3092\u8d85\u3048\u3066\u3044\u308b\u306e\u3067\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3067\u306f\u6b21\u306b\u9032\u307f\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">for\u6587\u306e\u5165\u308c\u5b50\u306e\u5834\u5408\u3001\u5185\u5074\u306efor\u6587\u306e\u4e2d\u306b<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3042\u308bbreak\u306fbreak\u3092\u542b\u3080for\u6587\u306e\u30d6\u30ed\u30c3\u30af\u3057\u304b\u629c\u3051\u307e\u305b\u3093\u304c\u3001\u4e00\u6c17\u306b\u5916\u5074\u306e\u30d6\u30ed\u30c3\u30af\uff08\u4e00\u756a\u524d\u306efor\uff09\u3092\u629c\u3051\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3067\u306f\u4f8b\u3092\u307f\u3066\u307f\u307e\u3057\u3087\u3046\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14356.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-5815\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14356-300x211.jpg\" alt=\"1\" width=\"300\" height=\"211\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14356-300x211.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14356.jpg 532w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14357.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-5816\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14357-300x158.jpg\" alt=\"1\" width=\"300\" height=\"158\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14357-300x158.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14357.jpg 527w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/span> <span style=\"font-size: 14pt;\">\u3042\u308b\u6761\u4ef6\u306b\u306a\u3063\u305f\u3089\u7e70\u308a\u8fd4\u3057\u3092\u6b62\u3081\u305f\u3044\u3068\u601d\u3046\u7b87\u6240\u306b<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14358.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5817\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14358.jpg\" alt=\"1\" width=\"191\" height=\"30\" \/><\/a><\/span> <span style=\"font-size: 14pt;\">\u3068\u8a18\u8ff0\u3057\u3066\u304f\u3060\u3055\u3044<\/span><br \/>\n<span style=\"font-size: 14pt;\">\uff08\u4f8b\u306e\u5834\u5408\u306fbreak OUT;\uff09\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u6b21\u306b\u629c\u3051\u305f\u3044\u3068\u3053\u308d\u306b<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14359.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5818\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14359.jpg\" alt=\"1\" width=\"243\" height=\"32\" \/><\/a>\u3068\u8a00\u3046\u5f62\u5f0f\u3067\u8a18\u8ff0\u3059\u308b\u3068\u3001\u305d\u3053\u307e\u3067\u5b9f\u884c\u4f4d\u7f6e\u3092\u79fb\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3059<\/span><span style=\"font-size: 14pt;\">(\u4f8b\u306e\u5834\u5408\u306f\u300cOUT:\u300d)\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u30e9\u30d9\u30eb\u540d\u306f\u5909\u6570\u540d\u3068\u540c\u3058\u898f\u5247\u3067\u81ea\u7531\u306b\u4ed8\u3051\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3053\u306e\u4f8b\u3067\u306f<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14360.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5819\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14360.jpg\" alt=\"1\" width=\"190\" height=\"141\" \/><\/a><\/span> <span style=\"font-size: 14pt;\">\u306e\u6240\u3067\u300ci*j\u300d\u306e\u7d50\u679c\u304c3\u3088\u308a\u5927\u304d\u3051\u308c\u3070\u3001<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14361.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5820\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14361.jpg\" alt=\"1\" width=\"64\" height=\"33\" \/><\/a>\u306e\u3042\u308b\u5834\u6240\u307e\u3067\u5b9f\u884c\u4f4d\u7f6e\u3092\u79fb\u3059\u306e\u3067\u4e8c\u91cd\u30eb\u30fc\u30d7\u305d\u306e\u3082\u306e\u3092\u629c\u3051\u307e\u3059<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14362.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5821\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/14362.jpg\" alt=\"1\" width=\"179\" height=\"193\" \/><\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u7ae0\u3067\u8aac\u660e\u3059\u308b\u3053\u3068\u306ffor\u6587\u306e\u4e2d\u3067if\u6587\u3092\u4f7f\u3046\u3053\u3068\u3068\u3001\u3055\u3089\u306b\u306ffor\u6587\u306e\u4e2d\u3067\u300c\u5f37\u5236\u7684\u306b\u7e70\u308a\u8fd4\u3057\u6587\u3092\u7d42\u4e86\u3055\u305b\u305f\u3044\u6642\u306b\u4f7f\u7528\u3059\u308bbreak\u300d\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 break\u306f\u3001\u73fe\u5728\u5b9f\u884c\u4e2d\u306e \u7e70\u308a\u8fd4\u3057\u6587\u306e\u5b9f\u884c\u3092\u5f37\u5236\u7684\u306b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[427],"tags":[218,166,142],"class_list":["post-5806","post","type-post","status-publish","format-standard","hentry","category-javascript","tag-break","tag-for","tag-if"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/5806"}],"collection":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5806"}],"version-history":[{"count":1,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/5806\/revisions"}],"predecessor-version":[{"id":5822,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/5806\/revisions\/5822"}],"wp:attachment":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}