{"id":467,"date":"2011-03-25T18:00:51","date_gmt":"2011-03-25T10:00:51","guid":{"rendered":"http:\/\/www.myclass-lin.org\/wordpress\/?p=467"},"modified":"2011-03-25T19:37:40","modified_gmt":"2011-03-25T11:37:40","slug":"467","status":"publish","type":"post","link":"https:\/\/www.myclass-lin.org\/wordpress\/archives\/467","title":{"rendered":"\u4e3b\u63a7\u53f0\u61c9\u7528\u7a0b\u5f0f\u5beb\u4e5d\u4e5d\u4e58\u6cd5\u8868"},"content":{"rendered":"<p>\u9019\u661f\u671f\u7684\u4f5c\u696d\u662f\u5beb\u96d9\u5c64For &#8230; Next\u7684\u8ff4\u5708\uff0c<br \/>\n\u4f5c\u696d\u5167\u5bb9\u70ba\u505a\u51fa\u4e5d\u4e5d\u4e58\u6cd5\u8868\u3002<br \/>\n\u5728\u60f3\u50cf\u4e2d\u505a\u51fa\u4e5d\u4e5d\u4e58\u6cd5\u8868\u5c31\u662f\u4e0a\u4e0b\u5169\u6392\uff0c<br \/>\n\u4e0a\u6392\u662f1?5\uff0c\u4e0b\u6392\u662f6?9\uff0c<br \/>\n\u5c31\u5982\u540c\u5c0f\u6642\u5019\u588a\u677f\u5f8c\u9762\u7684\u4e5d\u4e5d\u4e58\u6cd5\u8868\u4e00\u6a23\uff01<br \/>\n\u4f46\u525b\u958b\u59cb\u6015\u5beb\u4e0d\u51fa\u9019\u9ebc\u56f0\u96e3\u7684\uff0c\u60f3\u8aaa\u5148\u5beb\u4e00\u76f4\u6392\u7684\u5c31\u597d\uff0c<br \/>\n\u6709\u6642\u9593\u518d\u4f86\u4fee\u6b63\uff0c\u65bc\u662f\u4e0d\u77e5\u4e0d\u89ba\u628a\u5169\u7a2e\u90fd\u505a\u51fa\u4f86\u4e86\u3002<\/p>\n<p><!--more-->\u7c21\u55ae\u7248\u7684\u4e00\u76f4\u6392\u7684\u4e5d\u4e5d\u4e58\u6cd5\u8868\uff0c<br \/>\n<a target=\"_blank\" href=\"https:\/\/www.myclass-lin.org\/wordpress\/wp-content\/uploads\/2011\/03\/multiplication_1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.myclass-lin.org\/wordpress\/wp-content\/uploads\/2011\/03\/multiplication_1-300x183.jpg\" alt=\"\" title=\"multiplication_1\" width=\"300\" height=\"183\" class=\"alignnone size-medium wp-image-469\" srcset=\"https:\/\/www.myclass-lin.org\/wordpress\/wp-content\/uploads\/2011\/03\/multiplication_1-300x183.jpg 300w, https:\/\/www.myclass-lin.org\/wordpress\/wp-content\/uploads\/2011\/03\/multiplication_1.jpg 672w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u5229\u7528\u4e3b\u63a7\u53f0\u61c9\u7528\u7a0b\u5f0f\u5beb\u7684\u5167\u5bb9\u3002<br \/>\n\u5148\u8a2d\u4e5d\u4e5d\u4e58\u6cd5\u8868\u4e2d\u524d\u4f4d\u6578\u70bax\uff0c\u5f8c\u4f4d\u6578\u70bay\uff0c\u7d50\u679c\u70bax*y\u3002<br \/>\n\u4f9d\u7167\u6b64\u76f4\u6392\u7684\u4e5d\u4e5d\u4e58\u6cd5\u8868\uff0c<br \/>\nx\u70ba1\u6642\uff0cy\u70ba1?9\uff1b<br \/>\nx\u70ba2\u6642\uff0cy\u70ba1?9\uff1b<br \/>\n\u4f9d\u6b64\u985e\u63a8&#8230;.<br \/>\n\u56e0\u6b64\u5728\u5916\u5708\u7684\u8ff4\u5708\u5bebx=1\uff0c\u5167\u5708\u7684y\u5373\u6703\u5f9e1\u8dd1\u52309\uff0c<br \/>\n\u63a5\u4e0b\u4f86\u5916\u5708\u7684x\u70ba2\u6642\uff0c\u5167\u5708\u7684y\u4e5f\u6703\u5f9e1\u8dd1\u52309\uff0c<br \/>\n\u6bcf\u8dd1\u4e00\u884c\u5c31\u8981\u63db\u884c\uff0c\u56e0\u6b64\u8981\u7528\u51fd\u6578console.writeline()\uff0c<br \/>\n\u6545\u5beb\u6cd5\u5982\u4e0b\u3002<\/p>\n<pre lang=\"vb\" line=\"1\" colla=\"+\">\r\n        Dim x, y, result As Integer\r\n        For x = 1 To 9\r\n            For y = 1 To 9\r\n                result = x * y\r\n                Console.WriteLine(\"{0}x{1}={2}\", x, y, result)\r\n            Next\r\n            Console.WriteLine(\"\")\r\n        Next\r\n        Console.Read()\r\n<\/pre>\n<p>\u9700\u8981\u6392\u7248\u6210\u5982\u540c\u588a\u677f\u80cc\u9762\u7684\u4e5d\u4e5d\u4e58\u6cd5\u8868\u7684\u5f62\u5f0f\u5982\u4e0b\uff0c<br \/>\n<a target=\"_blank\" href=\"https:\/\/www.myclass-lin.org\/wordpress\/wp-content\/uploads\/2011\/03\/multiplication_2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.myclass-lin.org\/wordpress\/wp-content\/uploads\/2011\/03\/multiplication_2-300x184.jpg\" alt=\"\" title=\"multiplication_2\" width=\"300\" height=\"184\" class=\"alignnone size-medium wp-image-468\" srcset=\"https:\/\/www.myclass-lin.org\/wordpress\/wp-content\/uploads\/2011\/03\/multiplication_2-300x184.jpg 300w, https:\/\/www.myclass-lin.org\/wordpress\/wp-content\/uploads\/2011\/03\/multiplication_2.jpg 669w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u5229\u7528\u4e3b\u63a7\u53f0\u61c9\u7528\u7a0b\u5f0f\u5beb\u7684\u5167\u5bb9\u3002<br \/>\n\u4e00\u6a23\u5148\u5c07\u4e5d\u4e5d\u4e58\u6cd5\u8868\u4e2d\u7684\u524d\u885b\u6578\u8a2d\u70bax\uff0c\u5f8c\u4f4d\u6578\u8a2d\u70bay\uff0c\u7d50\u679c\u70bax*y\u3002<br \/>\n\u7531\u9019\u6b21\u8981\u4e00\u6b21\u5beb\u5b8c\u7b2c\u4e00\u5217\u518d\u505a\u63db\u884c\u7684\u52d5\u4f5c\uff0c<br \/>\n\u6240\u4ee5\u7b2c\u4e00\u5217\u7684x\u5206\u5225\u70ba1\u30012\u30013\u30014\u30015\uff0c\u800cy\u7686\u70ba1\uff0c<br \/>\n\u7b2c\u4e8c\u5217\u7684x\u4f9d\u820a\u70ba1\u30012\u30013\u30014\u30015\uff0c\u800cy\u7686\u70ba2\uff0c<br \/>\n\u4f9d\u6b64\u985e\u63a8&#8230;<br \/>\n\u56e0\u6b64\u5148\u5c07\u5916\u5708\u56fa\u5b9a\u4e0d\u52d5\uff0c\u4ee5y\u7576\u4f5c\u5916\u5708\uff0c\u6703\u8b8a\u52d5\u7684x\u7576\u6210\u5167\u5708\uff0c<br \/>\n\u7576y=1\u6642\uff0c\u5167\u5708\u7684x\u6703\u5f9e1\u8dd1\u52305\uff0c<br \/>\n\u7576y=2\u6642\uff0c\u5167\u5708\u7684x\u4e5f\u662f\u5f9e1\u8dd1\u52305\uff0c<br \/>\n\u4f9d\u6b64\u6301\u7e8c\u5230y\u7b49\u65bc9\uff0c\u624d\u63db\u5230\u5e95\u4e0b\u76846?9\u7684\u4e58\u6cd5\u8868\uff0c\u5beb\u6cd5\u4e00\u6a23\u3002<br \/>\n\u7531\u65bc\u5728\u5beb\u540c\u4e00\u5217\u5167\u5708x\u5f9e1\u8dd1\u52305\uff0c\u5916\u5708y\u662f1\u6642\u4e0d\u9700\u8981\u63db\u884c\uff0c\u56e0\u6b64\u4f7f\u7528\u51fd\u6578console.write()\uff0c<br \/>\n\u800c\u7576\u8dd1\u5b8c\u5f8c\u9700\u8981\u63db\u5217\u5230\u7b2c\u4e8c\u5217\u6642\uff0c\u5247\u4f7f\u7528\u51fd\u6578console.writeline()\uff0c<br \/>\n\u518d\u7e7c\u7e8c\u8dd1\u5167\u5708x\u5f9e1\u8dd1\u52305\uff0c\u5916\u5708y\u662f2\uff0c<br \/>\n\u5beb\u6cd5\u5982\u4e0b\uff1a<\/p>\n<pre lang=\"vb\" line=\"1\" colla=\"+\">\r\n        Dim x, y, result As Integer\r\n        For y = 1 To 9\r\n            For x = 1 To 5\r\n                result = x * y\r\n                Console.Write(\"{0}x{1}={2}  \", x, y, result)\r\n                If result < 10 Then\r\n                    Console.Write(\" \")\r\n                End If\r\n            Next\r\n            Console.WriteLine(\"\")\r\n        Next\r\n        Console.WriteLine(\"\")\r\n        For y = 1 To 9\r\n            For x = 6 To 9\r\n                result = x * y\r\n                Console.Write(\"{0}x{1}={2}  \", x, y, result)\r\n                If result < 10 Then\r\n                    Console.Write(\" \")\r\n                End If\r\n            Next\r\n            Console.WriteLine(\"\")\r\n        Next\r\n        Console.Read()\r\n<\/pre>\n<p>[ad#468*60]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9019\u661f\u671f\u7684\u4f5c\u696d\u662f\u5beb\u96d9\u5c64For &#8230; Next\u7684\u8ff4\u5708\uff0c \u4f5c\u696d\u5167\u5bb9\u70ba\u505a\u51fa\u4e5d\u4e5d &hellip; <a href=\"https:\/\/www.myclass-lin.org\/wordpress\/archives\/467\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-467","post","type-post","status-publish","format-standard","hentry","category-vb"],"_links":{"self":[{"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/posts\/467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/comments?post=467"}],"version-history":[{"count":0,"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/posts\/467\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/media?parent=467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/categories?post=467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myclass-lin.org\/wordpress\/wp-json\/wp\/v2\/tags?post=467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}