{"id":2942,"date":"2017-07-07T01:52:10","date_gmt":"2017-07-06T22:52:10","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=2942"},"modified":"2017-07-08T21:20:01","modified_gmt":"2017-07-08T18:20:01","slug":"ms1-%d1%81%d1%83%d0%bc%d0%bc%d0%b0-%d0%b2%d1%81%d0%b5%d1%85-%d0%bd%d0%b5%d1%87%d0%b5%d1%82%d0%bd%d1%8b%d1%85-%d1%87%d0%b8%d1%81%d0%b5%d0%bb-%d0%b2-%d0%b4%d0%b8%d0%b0%d0%bf%d0%b0%d0%b7%d0%be%d0%bd","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=2942","title":{"rendered":"MS1. \u0421\u0443\u043c\u043c\u0430 \u0432\u0441\u0435\u0445 \u043d\u0435\u0447\u0435\u0442\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435."},"content":{"rendered":"<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430<\/strong><\/p>\n<p>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0443\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043d\u0435\u0447\u0451\u0442\u043d\u044b\u0435 \u0446\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0432\u0435\u0434\u0451\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b.<\/p>\n<h2>\u0422\u0435\u0441\u0442\u044b<\/h2>\n<table style=\"height: 159px\" width=\"292\">\n<tbody>\n<tr>\n<td style=\"width: 89px\">\u041d\u0430\u0447\u0430\u043b\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430<\/td>\n<td style=\"width: 89px\">\u041a\u043e\u043d\u0435\u0446 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430<\/td>\n<td style=\"width: 92px\">\u0412\u044b\u0432\u043e\u0434<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 89px\">1<\/td>\n<td style=\"width: 89px\">11<\/td>\n<td style=\"width: 92px\">36<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 89px\">2<\/td>\n<td style=\"width: 89px\">8<\/td>\n<td style=\"width: 92px\">15<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 89px\">7<\/td>\n<td style=\"width: 89px\">30<\/td>\n<td style=\"width: 92px\">216<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h2>\n<pre class=\"lang:java decode:true\" title=\"\u041a\u043e\u0434\u044b\u0447\">import java.util.*;\r\nimport java.lang.*;\r\nimport java.io.*;\r\n\r\nclass Ideone\r\n{\r\n\tpublic static void main (String[] args) \r\n\t{\r\n\t\tint start = 0; \/\/ \u043d\u0430\u0447\u0430\u043b\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \r\n\t\tint finish = 0; \/\/ \u043a\u043e\u043d\u0435\u0446 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \r\n\t\tint sumUneven = 0;\r\n\t\t\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tstart = in.nextInt();\r\n\t\tfinish = in.nextInt();\r\n\t\t\r\n\t\tint i = start;\r\n\t\t\r\n\t\twhile (i &lt;= finish)\r\n\t\t{\r\n\t\t\tif (i % 2 != 0) \/\/ \u0435\u0441\u043b\u0438 \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 2 \u0441 \u043e\u0441\u0442\u0430\u0442\u043a\u043e\u043c, \u0432 \u043e\u0441\u0442\u0430\u0442\u043a\u0435 \u043d\u0435\u0442 0, \u0442\u043e =&gt;\r\n\t\t\t{\r\n\t\t\tSystem.out.println(i + \" \"); \/\/ \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u0447\u0435\u0442\u043d\u044b\u0435\r\n\t\t\tsumUneven += i; \/\/ \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u0442\u044c \u0438\u0445 \u0441\u0443\u043c\u043c\u0443\r\n\t\t\t}\t\t\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tSystem.out.println(\"\\nSum of uneven numbers from \" + start + \" to \" + finish + \" = \" + sumUneven);\r\n\t}\r\n}<\/pre>\n<p><a href=\"http:\/\/purecodecpp.com\/archives\/807\">\u0417\u0430\u0434\u0430\u0447\u0430(2)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0443\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043d\u0435\u0447\u0451\u0442\u043d\u044b\u0435 \u0446\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0432\u0435\u0434\u0451\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b. \u0422\u0435\u0441\u0442\u044b \u041d\u0430\u0447\u0430\u043b\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u041a\u043e\u043d\u0435\u0446 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u0412\u044b\u0432\u043e\u0434 1 11 36 2 8 15 7 30 216 \u0420\u0435\u0448\u0435\u043d\u0438\u0435 import java.util.*; import java.lang.*; import java.io.*; class Ideone { public static void main (String[] args) { int start = 0; \/\/ \u043d\u0430\u0447\u0430\u043b\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 int finish &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=2942\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":102,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[41,301,141],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/2942"}],"collection":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/users\/102"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2942"}],"version-history":[{"count":4,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/2942\/revisions"}],"predecessor-version":[{"id":2960,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/2942\/revisions\/2960"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}