{"id":2364,"date":"2015-05-06T08:48:19","date_gmt":"2015-05-05T23:48:19","guid":{"rendered":"http:\/\/programminglanguage7.com\/?p=2364"},"modified":"2015-05-06T08:48:19","modified_gmt":"2015-05-05T23:48:19","slug":"post-2364","status":"publish","type":"post","link":"https:\/\/programminglanguage7.com\/?p=2364","title":{"rendered":"for\u6587\u3092\u5165\u308c\u5b50\u306b\u3057\u3088\u3046"},"content":{"rendered":"<p><span style=\"font-size: 14pt;\">\u3053\u306e\u7ae0\u3067\u306ffor\u6587\u306e\u5fdc\u7528\u3067for\u6587\u306e\u30cd\u30b9\u30c8\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u30cd\u30b9\u30c8\u3068\u306ffor\u6587\u306e\u4e2d\u306bfor\u6587\u3092\u5165\u308c\u308b\u3068\u8a00\u3046\u3053\u3068\u3067\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\/11533.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2365\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11533-300x169.jpg\" alt=\"1\" width=\"300\" height=\"169\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11533-300x169.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11533.jpg 491w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/span> <span style=\"font-size: 14pt;\">for\u6587\u306e\u30cd\u30b9\u30c8\u306f\u8907\u96d1\u306a\u306e\u3067\u9806\u3092\u8ffd\u3063\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2460$i\u306b1\u3092\u4ee3\u5165\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2461\u300c$i&lt;=3\u300d\u306e\u6761\u4ef6\u5f0f\u3092\u5224\u5b9a\u3057\u307e\u3059\u304c\u3053\u3053\u304cTRUE\u306a\u306e\u3067<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11534.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2366\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11534-300x124.jpg\" alt=\"1\" width=\"300\" height=\"124\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11534-300x124.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11534.jpg 456w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/span> <span style=\"font-size: 14pt;\">\u304c3\u56de\u5b9f\u884c\u3055\u308c\u3066<\/span><br \/>\n<span style=\"font-size: 14pt;\">1\u639b\u3051\u308b1=1<\/span><br \/>\n<span style=\"font-size: 14pt;\">1\u639b\u3051\u308b2=2<\/span><br \/>\n<span style=\"font-size: 14pt;\">1\u639b\u3051\u308b3=3<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3068\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3064\u307e\u308a\u3001\u6700\u521d\u306f$i\u306b\u306f1\u304c\u5165\u3063\u3066\u3044\u308b\u306e\u3067\u3001print\u6587\u306e\u4e2d\u306e$i\u306b\u306f1\u304c\u5165\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\"><a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11537.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2370\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11537.jpg\" alt=\"1\" width=\"35\" height=\"40\" \/><\/a>\u306b\u306f1\u304b\u30893\u307e\u3067\u304c\u3001\u9806\u756a\u306b\u4ee3\u5165\u3055\u308c\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3064\u307e\u308a\u3001\u5916\u5074\u306efor\u6587\u304c1\u5468\u3059\u308b\u3054\u3068\u306b\u3001\u4e2d\u306efor\u6587\u306f3\u5468\u3057\u3066\u3044\u307e\u3059\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11535.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2367\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11535-300x121.jpg\" alt=\"1\" width=\"300\" height=\"121\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11535-300x121.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11535.jpg 522w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/span> <span style=\"font-size: 14pt;\">\u2462\u6b21\u306b$i++\u306e\u7b87\u6240\u3067$i\u306b1\u3092\u8db3\u3057\u3001$i\u306f2\u306b\u306a\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2463\u305d\u3057\u3066\u6761\u4ef6\u5f0f\u306e\u5224\u5b9a\u306b\u5165\u308a\u307e\u3059\u304c\u30012\u56de\u76ee\u306e\u30eb\u30fc\u30d7\u3067\u306f\u307e\u3060$i\u306f2\u306a\u306e\u3067TRUE\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u3001<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11534.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2366\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11534-300x124.jpg\" alt=\"1\" width=\"300\" height=\"124\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11534-300x124.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11534.jpg 456w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/span> <span style=\"font-size: 14pt;\">\u304c\uff13\u56de\u5b9f\u884c\u3055\u308c\u3066<\/span><br \/>\n<span style=\"font-size: 14pt;\">2\u639b\u3051\u308b1=2<\/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;\">\u3068\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2464\u6b21\u306b$i++\u306b\u623b\u308a$i\u306b1\u3092\u8db3\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u305d\u3053\u3067$i\u306f3\u306b\u306a\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2465\u305d\u3057\u3066\u6761\u4ef6\u5f0f\u306e\u5224\u5b9a\u306b\u5165\u308a\u307e\u3059\u304c\u30013\u56de\u76ee\u306e\u30eb\u30fc\u30d7\u3067\u306f\u307e\u3060$i\u306f3\u306a\u306e\u3067,TRUE\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u3001<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11534.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2366\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11534-300x124.jpg\" alt=\"1\" width=\"300\" height=\"124\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11534-300x124.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11534.jpg 456w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/span> <span style=\"font-size: 14pt;\">\u304c3\u56de\u5b9f\u884c\u3055\u308c\u3066\u3000<\/span><br \/>\n<span style=\"font-size: 14pt;\">3\u639b\u3051\u308b1=3<\/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;\">\u3068\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2466\u6b21\u306b$i++\u306b\u623b\u308a$i\u306b1\u3092\u8db3\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u305d\u3053\u3067$i\u306f4\u306b\u306a\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2467\u305d\u3057\u3066\u6761\u4ef6\u5f0f\u306e\u5224\u5b9a\u306b\u5165\u308a\u307e\u3059\u304c\u3001$i\u306f4\u30673\u4ee5\u4e0b\u3067\u306f\u306a\u3044\u306e\u3067FALSE\u3068\u306a\u308a\u3001\u3053\u3053\u3067\u30eb\u30fc\u30d7\u306f\u7d42\u308f\u308a\u306b\u306a\u308a\u307e\u3059\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11536.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2368\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11536-141x300.jpg\" alt=\"1\" width=\"215\" height=\"457\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11536-141x300.jpg 141w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11536.jpg 271w\" sizes=\"(max-width: 215px) 100vw, 215px\" \/><\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u7ae0\u3067\u306ffor\u6587\u306e\u5fdc\u7528\u3067for\u6587\u306e\u30cd\u30b9\u30c8\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 \u30cd\u30b9\u30c8\u3068\u306ffor\u6587\u306e\u4e2d\u306bfor\u6587\u3092\u5165\u308c\u308b\u3068\u8a00\u3046\u3053\u3068\u3067\u3059\u3002 \u3067\u306f\u4f8b\u3092\u307f\u3066\u307f\u307e\u3057\u3087\u3046\u3002 for\u6587\u306e\u30cd\u30b9\u30c8\u306f\u8907\u96d1\u306a\u306e\u3067\u9806\u3092\u8ffd\u3063\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 \u2460$i\u306b1\u3092\u4ee3\u5165\u3057\u307e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[193],"tags":[166,145],"class_list":["post-2364","post","type-post","status-publish","format-standard","hentry","category-php","tag-for","tag-145"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/2364"}],"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=2364"}],"version-history":[{"count":2,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/2364\/revisions"}],"predecessor-version":[{"id":2371,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/2364\/revisions\/2371"}],"wp:attachment":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}