{"id":2802,"date":"2017-07-06T11:07:26","date_gmt":"2017-07-06T08:07:26","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=2802"},"modified":"2017-07-07T06:31:33","modified_gmt":"2017-07-07T03:31:33","slug":"mif-1","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=2802","title":{"rendered":"Mif 1"},"content":{"rendered":"<h1>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/h1>\n<p>\u0414\u0430\u043d\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 [latex]x, y[\/latex]. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c [latex]max(x,y)[\/latex].<\/p>\n<h1>\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<\/h1>\n<p>\u0414\u0432\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u043b\u0430 &#8212; [latex]x[\/latex] \u0438 [latex]y[\/latex].<\/p>\n<h1>\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<\/h1>\n<p>\u0427\u0438\u0441\u043b\u043e, \u044f\u0432\u043b\u044f\u044e\u0449\u0435\u0435\u0441\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u043e\u043c \u0438\u0437 \u0434\u0432\u0443\u0445 \u0447\u0438\u0441\u0435\u043b &#8212; [latex]maxOfTwo[\/latex]\n<h1>\u0422\u0435\u0441\u0442\u044b<\/h1>\n<table style=\"width: 235px\">\n<tbody>\n<tr>\n<td style=\"width: 20px\">\u2116<\/td>\n<td style=\"width: 98px\">\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/td>\n<td style=\"width: 119px\">\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 20px\">1<\/td>\n<td style=\"width: 98px\">3 4<\/td>\n<td style=\"width: 119px\">4<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 20px\">2<\/td>\n<td style=\"width: 98px\">-3 -5<\/td>\n<td style=\"width: 119px\">-3<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 20px\">3<\/td>\n<td style=\"width: 98px\">0 12<\/td>\n<td style=\"width: 119px\">12<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h1>\u0420\u0435\u0448\u0435\u043d\u0438\u0435:<\/h1>\n<pre class=\"lang:java decode:true\">class SecondLab\r\n{\r\n\tpublic static void main (String[] args)\r\n\t{\r\n\t\tdouble x, y, maxOfTwo;\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tx = input.nextDouble();\r\n\t\ty = input.nextDouble();\r\n\t\tif(x&gt;y){\r\n\t\t\tmaxOfTwo = x;\r\n\t\t}else{\r\n\t\t\tmaxOfTwo = y;\r\n\t\t}\r\n\t\tSystem.out.println(maxOfTwo);\r\n\t}\r\n}<\/pre>\n<h1>\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435:<\/h1>\n<pre class=\"lang:java decode:true  \">class SecondLab\r\n{\r\n\tpublic static void main (String[] args) throws java.lang.Exception\r\n\t{\r\n\t\tdouble x, y, maxOfTwo;\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tx = input.nextDouble();\r\n\t\ty = input.nextDouble();\r\n\t\tmaxOfTwo = x&gt;y? x : y;\r\n\t\tSystem.out.println(maxOfTwo);\r\n\t}\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<h1>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f:<\/h1>\n<p>\u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u0442\u0440\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0442\u0438\u043f\u0430\u00a0<span class=\"lang:java decode:true crayon-inline \">int<\/span>\u00a0 &#8212;\u00a0<span class=\"lang:java decode:true crayon-inline \">x, y, maxOfTwo<\/span>\u00a0. \u0412\u0432\u043e\u0434\u0438\u043c \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f\u00a0<span class=\"lang:java decode:true crayon-inline \">x<\/span>\u00a0\u0438\u00a0<span class=\"lang:java decode:true crayon-inline \">y<\/span>\u00a0. \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u00a0<span class=\"lang:java decode:true crayon-inline \">if-else<\/span>\u00a0 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c\u00a0<span class=\"lang:java decode:true crayon-inline \">x&gt;y<\/span>\u00a0. \u0415\u0441\u043b\u0438 \u0438\u0441\u0442\u0438\u043d\u043d\u043e, \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439\u00a0<span class=\"lang:java decode:true crayon-inline \">maxOfTwo<\/span>\u00a0 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439\u00a0<span class=\"lang:java decode:true crayon-inline \">x<\/span>\u00a0, \u0430 \u0438\u043d\u0430\u0447\u0435\u00a0<span class=\"lang:java decode:true crayon-inline \">MaxOfTwo = y<\/span>\u00a0. \u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00a0<span class=\"lang:java decode:true crayon-inline \">MaxOfTwo<\/span>\u00a0 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<span class=\"lang:java decode:true crayon-inline \">System.out.println()<\/span>\u00a0.<\/p>\n<h1>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f:<\/h1>\n<p>\u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u0442\u0440\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0442\u0438\u043f\u0430\u00a0<span class=\"lang:java decode:true crayon-inline \">int<\/span>\u00a0 &#8212;\u00a0<span class=\"lang:java decode:true crayon-inline \">x, y, maxOfTwo<\/span>\u00a0. \u0412\u0432\u043e\u0434\u0438\u043c \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f\u00a0<span class=\"lang:java decode:true crayon-inline \">x<\/span>\u00a0\u0438\u00a0<span class=\"lang:java decode:true crayon-inline \">y<\/span>\u00a0. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u0435\u0440\u043d\u0430\u0440\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u00a0<span class=\"lang:java decode:true crayon-inline \">?:<\/span>\u00a0\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0438\u0441\u0442\u0438\u043d\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u00a0<span class=\"lang:java decode:true crayon-inline \">x&gt;y<\/span>\u00a0\u0438 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439\u00a0<span class=\"lang:java decode:true crayon-inline\">maxOfTwo<\/span>\u00a0. \u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00a0<span class=\"lang:java decode:true crayon-inline \">MaxOfTwo<\/span>\u00a0 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<span class=\"lang:java decode:true crayon-inline \">System.out.println()<\/span>\u00a0.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438 \u0414\u0430\u043d\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 [latex]x, y[\/latex]. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c [latex]max(x,y)[\/latex]. \u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435: \u0414\u0432\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u043b\u0430 &#8212; [latex]x[\/latex] \u0438 [latex]y[\/latex]. \u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435: \u0427\u0438\u0441\u043b\u043e, \u044f\u0432\u043b\u044f\u044e\u0449\u0435\u0435\u0441\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u043e\u043c \u0438\u0437 \u0434\u0432\u0443\u0445 \u0447\u0438\u0441\u0435\u043b &#8212; [latex]maxOfTwo[\/latex] \u0422\u0435\u0441\u0442\u044b \u2116 \u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 1 3 4 4 2 -3 -5 -3 3 0 12 12 &nbsp; \u0420\u0435\u0448\u0435\u043d\u0438\u0435: class SecondLab { public static void main &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=2802\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":92,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[17,41,144,92,102],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/2802"}],"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\/92"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2802"}],"version-history":[{"count":17,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/2802\/revisions"}],"predecessor-version":[{"id":2953,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/2802\/revisions\/2953"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}