{"id":318998,"date":"2021-03-04T03:00:19","date_gmt":"2021-03-04T03:00:19","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=318998"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=318998","title":{"rendered":"\u0422\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u041c\u0438\u043a\u0440\u043e\u0441\u043e\u0444\u0442 \u0441\u043a\u0430\u0437\u0430\u043b, \u0447\u0442\u043e <a href=\"https:\/\/habr.com\/ru\/news\/t\/492158\/\">\u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u044f\u0437\u044b\u043a\u0430 Visual Basic<\/a>. \u0417\u043d\u0430\u0447\u0438\u0442, \u043f\u0440\u0438\u0448\u043b\u0430 \u043f\u043e\u0440\u0430 <s>\u0432 \u0421\u0438\u0442\u0438\u043b\u0438\u043d\u043a<\/s> \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u0434.<\/p>\n<p>  \u0412\u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u044d\u043f\u043e\u0445\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0441\u0430\u043c\u043e\u043c\u0443 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u043e\u0434\u0438\u043d \u043f\u0435\u0442-\u043f\u0440\u043e\u0435\u043a\u0442 \u0441 VBA \u043d\u0430 C#. \u042f \u043e\u0431\u044b\u0447\u043d\u043e \u0432\u0441\u0435 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0438\u0440\u0443\u044e \u043d\u0430 MS Access, \u0438 \u043f\u043e\u0442\u043e\u043c \u0443\u0436\u0435 \u043a\u043e\u0434 \u043f\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u0435\u0442 \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u0443\u044e \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 (\u0447\u0438\u0442\u0430\u0439: SQL Server) \u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>  \u0418 \u0432\u043e\u0442 \u0446\u0438\u043a\u043b\u044b. <a name=\"habracut\"><\/a><br \/>  \u0412 Basic \u0438 Pascal \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u0446\u0438\u043a\u043b\u0430<br \/>  \u00a0<br \/>  <b>for <\/b>i = Lower <b>to <\/b>Upper <b>step <\/b>Step<br \/>  \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u2026<br \/>  <b>next<\/b><\/p>\n<p>  \u041e\u043d\u0430 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u0430 \u0432 \u0442\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0435\u0445\u0430\u0442\u044c \u043a\u0430\u043a \u0441\u043d\u0438\u0437\u0443 \u0432\u0432\u0435\u0440\u0445, \u0442\u0430\u043a \u0438 \u0441\u0432\u0435\u0440\u0445\u0443 \u0432\u043d\u0438\u0437. \u0415\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u0435\u0441\u043b\u0438 Step&gt;0, \u0438 \u0435\u0441\u043b\u0438 Step&lt;0.<\/p>\n<p>  \u0410 \u043a\u0430\u043a \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0432 \u043d\u043e\u0442\u0430\u0446\u0438\u0438 C\/C++\/C#\/JavaScript? \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0438\u0445\u043d\u0438\u0439 \u0446\u0438\u043a\u043b <b>for <\/b>\u0432\u043e\u0432\u0441\u0435 \u043d\u0435 \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442 Basic-\u043e\u0432\u0441\u043a\u043e\u043c\u0443:<\/p>\n<p>  \u00a0 <b>for <\/b>(i = Lower; i &lt; Upper+1; i+=Step) { \u2026 }<\/p>\n<p>  \u041a\u0430\u043a \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u0438 \u0434\u043b\u044f \u0441\u043b\u0443\u0447\u0430\u044f, \u043a\u043e\u0433\u0434\u0430 Step&lt;0? \u041f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u0442\u0430\u043a\u043e\u0435, \u043d\u0435 \u0441\u0430\u043c\u043e\u0435 \u0438\u0437\u044f\u0449\u043d\u043e\u0435, \u0440\u0435\u0448\u0435\u043d\u0438\u0435:<\/p>\n<p>  <b>for <\/b>(i = Lower; <b>Sign<\/b>(Step)*i &lt;= <b>Sign<\/b>(Step)*Upper; i+=Step) { \u2026 }<\/p>\n<p>  \u041e\u043d, \u043a\u0430\u043a \u0438 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 for\u2026 next, \u0437\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u0441\u044f \u043f\u0440\u0438 Step =0.<\/p>\n<p>  \u041a\u043e\u043b\u043b\u0435\u0433\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b\u0438 \u0435\u0449\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442:<\/p>\n<p>  <b>for<\/b> ( i=Lower; Step&gt;0? i&lt;=Upper: i&gt;=Upper; i+=Step)\u00a0 {\u2026 }<\/p>\n<p>  \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0430\u043c \u043d\u0430\u0434\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0446\u0438\u043a\u043b\u0430 \u0431\u044b\u043b\u043e Upper, \u0438 \u043e\u043d\u0430 \u0442\u043e\u0436\u0435 \u043f\u043e\u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0430 \u0432 \u0442\u0435\u043b\u0435 \u0446\u0438\u043a\u043b\u0430, \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0446\u0438\u043a\u043b \u0441 \u043f\u043e\u0441\u0442\u0443\u0441\u043b\u043e\u0432\u0438\u0435\u043c:<\/p>\n<p>  i = Lower \u2014 Step;<br \/>  <b>do<\/b><br \/>   i += Step;<br \/>  \u2026<br \/>  <b>while <\/b>(i != Upper)<\/p>\n<p>  \u043d\u043e \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043d\u0435 \u0433\u043e\u0434\u0438\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 Step \u043d\u0435 \u0434\u0435\u043b\u0438\u0442 \u043d\u0430\u0446\u0435\u043b\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d Lower \u2026 Upper<\/p>\n<p>  \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0446\u0438\u043a\u043b \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c <b>range <\/b>\u043d\u0430 <b>Python <\/b>\u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a \u043c\u0435\u043d\u044c\u0448\u0435\u043c\u0443, <b>range<\/b>(b, a) \u043f\u0440\u0438 b&gt;a \u0437\u0430\u0434\u0430\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0443\u0441\u0442\u043e\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d.<\/p>\n<p>  \u041a\u0430\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u0435 \u0432\u044b?<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/545398\/\"> https:\/\/habr.com\/ru\/post\/545398\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u041c\u0438\u043a\u0440\u043e\u0441\u043e\u0444\u0442 \u0441\u043a\u0430\u0437\u0430\u043b, \u0447\u0442\u043e <a href=\"https:\/\/habr.com\/ru\/news\/t\/492158\/\">\u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u044f\u0437\u044b\u043a\u0430 Visual Basic<\/a>. \u0417\u043d\u0430\u0447\u0438\u0442, \u043f\u0440\u0438\u0448\u043b\u0430 \u043f\u043e\u0440\u0430 <s>\u0432 \u0421\u0438\u0442\u0438\u043b\u0438\u043d\u043a<\/s> \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u0434.<\/p>\n<p>  \u0412\u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u044d\u043f\u043e\u0445\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0441\u0430\u043c\u043e\u043c\u0443 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u043e\u0434\u0438\u043d \u043f\u0435\u0442-\u043f\u0440\u043e\u0435\u043a\u0442 \u0441 VBA \u043d\u0430 C#. \u042f \u043e\u0431\u044b\u0447\u043d\u043e \u0432\u0441\u0435 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0438\u0440\u0443\u044e \u043d\u0430 MS Access, \u0438 \u043f\u043e\u0442\u043e\u043c \u0443\u0436\u0435 \u043a\u043e\u0434 \u043f\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u0435\u0442 \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u0443\u044e \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 (\u0447\u0438\u0442\u0430\u0439: SQL Server) \u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>  \u0418 \u0432\u043e\u0442 \u0446\u0438\u043a\u043b\u044b. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-318998","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/318998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=318998"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/318998\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=318998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=318998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=318998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}