{"id":9632,"date":"2015-05-29T16:31:04","date_gmt":"2015-05-29T07:31:04","guid":{"rendered":"http:\/\/programminglanguage7.com\/?p=9632"},"modified":"2015-05-29T16:31:04","modified_gmt":"2015-05-29T07:31:04","slug":"post-9632","status":"publish","type":"post","link":"https:\/\/programminglanguage7.com\/?p=9632","title":{"rendered":"while\u6587\u306b\u3064\u3044\u3066\u77e5\u308d\u3046"},"content":{"rendered":"<p><span style=\"font-size: 14pt;\">\u3053\u306e\u7ae0\u3067\u306fwhile\u6587\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\"> while\u6587\u306ffor\u6587\u3068\u540c\u3058\u304f\u3001\u4f55\u5ea6\u3082\u7e70\u308a\u8fd4\u3059\u3088\u3046\u306a\u51e6\u7406\u3092\u5fc5\u8981\u3068\u3059\u308b\u6642\u306b\u4f7f\u7528\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\/9429.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9633\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9429-239x300.jpg\" alt=\"9\" width=\"239\" height=\"300\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9429-239x300.jpg 239w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9429.jpg 441w\" sizes=\"(max-width: 239px) 100vw, 239px\" \/><\/a><\/span><span style=\"font-size: 14pt;\"> while\u6587\u306e\u69cb\u6587\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9430.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9634\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9430.jpg\" alt=\"9\" width=\"249\" height=\"183\" \/><\/a><\/span><span style=\"font-size: 14pt;\"> \u3007 do\u306f\u7701\u7565\u53ef\u80fd\u3067\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u521d\u3081\u306bwhile\u304c\u5b9f\u884c\u3055\u308c\u308b\u6642\u306b\u6761\u4ef6\u5f0f\u304ctrue\u3082\u3057\u304f\u306ffalse\u306a\u306e\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002true\u3067\u3042\u308b\u5834\u5408\u306fwhile\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\"> false\u3067\u3042\u308b\u5834\u5408\u306fwhile\u306f\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u3067\u306f\u5b9f\u969b\u306e\u52d5\u304d\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u2460 num\u306b0\u3092\u4ee3\u5165\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"> \u2461\u6761\u4ef6\u5f0f(num&lt;3)\u3092\u30c1\u30a7\u30c3\u30af\u3057\u305f\u7d50\u679c\u3001true\u306a\u306e\u3067\u7e70\u308a\u8fd4\u3057\u6587\u3092\u5b9f\u884c\u3057\u3001<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9431.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9635\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9431.jpg\" alt=\"9\" width=\"276\" height=\"37\" \/><\/a>\u3067 0\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"> \u2462 num +=1\u306e\u7b87\u6240\u30670\u3067\u3042\u3063\u305fnum\u306b1\u3092\u8db3\u3057\u3066\u30011\u306b\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"> \u2463\u305d\u308c\u304b\u3089\u307e\u305fwhile\u306e\u5148\u982d\u306b\u623b\u3063\u3066\u6761\u4ef6\u5f0f\u3092\u8a55\u4fa1\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u6761\u4ef6\u5f0f\u3092\u30c1\u30a7\u30c3\u30af\u3057\u305f\u7d50\u679c\u3001num\u306f3\u4ee5\u4e0b\u3067true\u306a\u306e\u3067<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9431.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9635\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9431.jpg\" alt=\"9\" width=\"276\" height=\"37\" \/><\/a>\u3092\u5b9f\u884c\u3057\u30661\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"> \u2464 num +=1\u306e\u7b87\u6240\u30671\u3067\u3042\u3063\u305fnum\u306b1\u3092\u8db3\u3057\u3066\u30012\u306b\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"> \u2465\u305d\u308c\u304b\u3089\u307e\u305fwhile\u306e\u5148\u982d\u306b\u623b\u3063\u3066\u6761\u4ef6\u5f0f\u3092\u8a55\u4fa1\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u6761\u4ef6\u5f0f\u3092\u30c1\u30a7\u30c3\u30af\u3057\u305f\u7d50\u679c\u3001num\u306f3\u4ee5\u4e0b\u3067true\u306a\u306e\u3067<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9431.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9635\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9431.jpg\" alt=\"9\" width=\"276\" height=\"37\" \/><\/a>\u3092\u5b9f\u884c\u3057\u30662\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"> \u2466 num +=1\u306e\u7b87\u6240\u30672\u3067\u3042\u3063\u305fnum\u306b1\u3092\u8db3\u3057\u3066\u30013\u306b\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"> \u2467\u305d\u308c\u304b\u3089\u307e\u305fwhile\u306e\u5148\u982d\u306b\u623b\u3063\u3066\u6761\u4ef6\u5f0f\u3092\u8a55\u4fa1\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u6761\u4ef6\u5f0f\u3092\u30c1\u30a7\u30c3\u30af\u3057\u305f\u7d50\u679c\u3001num\u306f3\u4ee5\u4e0b\u3067\u306f\u306a\u3044\u306e\u3067\u3001false\u306b\u306a\u308awhile\u6587\u304c\u7d42\u4e86\u306b\u306a\u308a\u307e\u3059\u3002<\/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\/9432.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9636\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9432.jpg\" alt=\"9\" width=\"251\" height=\"88\" \/><\/a><\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u6b21\u306fwhile\u88c5\u98fe\u5b50\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\"> while\u88c5\u98fe\u5b50\u306f<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9433.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9637\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9433.jpg\" alt=\"9\" width=\"209\" height=\"38\" \/><\/a>\u3092\u672b\u5c3e\u306b\u66f8\u304f\u5f62\u5f0f\u306e\u3053\u3068\u3092\u8a00\u3044\u307e\u3059\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9434.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9638\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9434-300x54.jpg\" alt=\"9\" width=\"300\" height=\"54\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9434-300x54.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9434.jpg 475w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/span><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\/9435.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9639\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9435-300x195.jpg\" alt=\"9\" width=\"300\" height=\"195\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9435-300x195.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9435.jpg 541w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/span><span style=\"font-size: 14pt;\"> num\u3092\u51fa\u529b\u3057\u3066\u304b\u3089\u3001while\u306e\u6761\u4ef6\u5f0f\u306e\u5224\u5b9a\u306b\u5165\u308b\u306e\u3067\u7d50\u679c\u306f1\u304b\u30896\u307e\u3067\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/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\/9436.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9640\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/9436.jpg\" alt=\"9\" width=\"227\" height=\"46\" \/><\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u7ae0\u3067\u306fwhile\u6587\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 while\u6587\u306ffor\u6587\u3068\u540c\u3058\u304f\u3001\u4f55\u5ea6\u3082\u7e70\u308a\u8fd4\u3059\u3088\u3046\u306a\u51e6\u7406\u3092\u5fc5\u8981\u3068\u3059\u308b\u6642\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002 \u3067\u306f\u4f8b\u3092\u307f\u3066\u307f\u307e\u3057\u3087\u3046\u3002 while\u6587\u306e\u69cb\u6587\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002 \u3007 do\u306f\u7701\u7565\u53ef\u80fd\u3067\u3059\u3002  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[557],"tags":[162],"class_list":["post-9632","post","type-post","status-publish","format-standard","hentry","category-ruby","tag-while"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/9632"}],"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=9632"}],"version-history":[{"count":1,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/9632\/revisions"}],"predecessor-version":[{"id":9641,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/9632\/revisions\/9641"}],"wp:attachment":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}