{"id":23672,"date":"2012-11-30T11:40:45","date_gmt":"2012-11-30T08:40:45","guid":{"rendered":"http:\/\/studentpmr.ru\/?p=23672"},"modified":"2012-11-30T11:40:45","modified_gmt":"2012-11-30T08:40:45","slug":"%d0%bf%d1%80%d0%be%d0%b3%d1%80%d0%b0%d0%bc%d0%bc%d0%b8%d1%80%d0%be%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5-%d0%bb%d0%b0%d0%b1%d0%be%d1%80%d0%b0%d1%82%d0%be%d1%80%d0%bd%d1%8b%d0%b5-%d1%80%d0%b0%d0%b1%d0%be-2","status":"publish","type":"post","link":"https:\/\/studentpmr.ru\/?p=23672","title":{"rendered":"\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u041b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u043d\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u044b. \u0427\u0430\u0441\u0442\u044c 2."},"content":{"rendered":"<p><div class='afi-document'><div class='afi-document-icon'><a href='http:\/\/studentpmr.ru\/foto\/2012\/11\/\u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0435-\u043c\u0430\u0441\u0441\u0438\u0432\u044b.doc'><img src='http:\/\/studentpmr.ru\/wp-content\/plugins\/attachment-file-icons\/mime\/doc-icon.png'\/><\/a><\/div><div class='afi-document-link'><a href='http:\/\/studentpmr.ru\/foto\/2012\/11\/\u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0435-\u043c\u0430\u0441\u0441\u0438\u0432\u044b.doc'>\u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b<\/a><\/div><\/div><div class='afi-clear'><\/div><\/p>\n<p>#include <conio.h><br \/>\n#include <stdio.h><br \/>\n#define size 5<br \/>\nvoid main()<br \/>\n{<br \/>\n clrscr();<br \/>\n int a[size][size],i,j,b[size][size];<br \/>\n printf(&#171;\\t\\t\u0422\u0440\u0430\u043d\u0441\u043f\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430\\n\\n&#187;);<br \/>\n printf(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443:\\n&#187;);<br \/>\n for(i=0;i<size;i++)\n<!--more--><br \/>\n\tfor(j=0;j<size;j++)\n\t     scanf(\"%5d\",&#038;a[i][j]);\n for(i=0;i<size;i++)\n\tfor(j=0;j<size;j++)\n\t     b[i][j]=a[j][i];\n printf(\"\\n\\n\u0422\u0440\u0430\u043d\u0441\u043f\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430:\\n\");\n for(i=0;i<size;i++)\n\t{\n\tfor(j=0;j<size;j++)\n\t     printf(\"%5d\",b[i][j]);\n\t     printf(\"\\n\");\n\t}\n getch();\n}\n\n\n\n#include <conio.h><br \/>\n#include <stdio.h><br \/>\n#define n 5<br \/>\n#define m 7<br \/>\nvoid main()<br \/>\n{<br \/>\n clrscr();<br \/>\n int a[n][m],i,j,N[n];<br \/>\n printf(&#171;\\n\\t\\t\u041f\u0440\u043e\u0441\u0443\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430\\n\\n&#187;);<br \/>\n printf(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443:\\n&#187;);<br \/>\n for(i=0;i<n;i++)\n\tfor(j=0;j<m;j++)\n\t     scanf(\"%d\",&#038;a[i][j]);\n printf(\"\\n\\\u041f\u0440\u043e\u0441\u0443\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430:\\n\");\n for(i=0;i<n;i++)\n\t{\n\t N[i]=0;\n\t for(j=0;j<m;j++)\n\t     N[i]+=a[i][j];\n\t}\n\tfor(i=0;i<n;i++)\n           printf(\"%5d\",N[i]);\n getch();\n}\n\n\n#include <conio.h><br \/>\n#include <stdio.h><br \/>\n#include<math.h><br \/>\n#define n 5<br \/>\nvoid main()<br \/>\n{<br \/>\n clrscr();<br \/>\n int a[n][n],i,j,max,max_i,max_j,temp,k;<br \/>\n printf(&#171;\\n\\t\\t\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u043e\u0439 \u043c\u0430\u0442\u0440\u0438\u0446\u044b\\n\\n&#187;);<br \/>\n printf(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443:\\n&#187;);<br \/>\n for(i=0;i<n;i++)\n\tfor(j=0;j<n;j++)\n\t     scanf(\"%d\",&#038;a[i][j]);\nm:printf(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u0430 (k):\\n\");\n scanf(\"%d\",&#038;k);\n if(k>=n)<br \/>\n     {<br \/>\n     printf(&#171;\u0412\u0432\u0435\u0434\u0435\u043d \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440, \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u0432\u0432\u043e\u0434\\n&#187;);<br \/>\n     goto m;<br \/>\n     }<br \/>\n max=a[0][0];<br \/>\n for(i=0;i<n;i++)\n\tfor(j=0;j<n;j++)\n\t     {\n\t     if(max<abs(a[i][j]))\n\t\t  {\n\t\t   max=a[i][j];\n\t\t   max_i=i;\n\t\t   max_j=j;\n\t\t  }\n\t     }\n printf(\"max=%d\\n\",max);\n if((k==max_i)&#038;&#038;(k==max_j))\n\tprintf(\"\u041f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430\");\n else\n\t {\n\t temp=a[max_i][max_j];\n\t a[max_i][max_j]=a[k-1][k-1];\n\t a[k-1][k-1]=temp;\n\t }\n for(i=0;i<n;i++)\n\t{\n\tfor(j=0;j<n;j++)\n\t     printf(\"%5d\",a[i][j]);\n\t     printf(\"\\n\");\n\t}\n getch();\n}\n\n\n\n#include <conio.h><br \/>\n#include <stdio.h><br \/>\n#define n 5<br \/>\nvoid main()<br \/>\n{<br \/>\n clrscr();<br \/>\n int a[n][n],i,j;<br \/>\n printf(&#171;\\t\\t\u0417\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043c\u0430\u0442\u0440\u0438\u0446\u044b\\n\\n&#187;);<br \/>\n for(i=0;i<n;i++)\n\t{\n\tfor(j=0;j<n;j++)\n\t    a[i][j]=0;\n\t}\n for(i=0;i<n;i++)\n\ta[i][i]=(i+1)*(i+2);\n printf(\"\\n\\n\u0418\u0441\u043a\u043e\u043c\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430:\\n\");\n for(i=0;i<n;i++)\n\t{\n\tfor(j=0;j<n;j++)\n\t     printf(\"%5d\",a[i][j]);\n\tprintf(\"\\n\");\n\t}\n getch();\n}\n\n\n\n#include <conio.h><br \/>\n#include <stdio.h><br \/>\n#define n 5<br \/>\nvoid main()<br \/>\n{<br \/>\n clrscr();<br \/>\n int a[n][n],i,j;<br \/>\n printf(&#171;\\t\\t\u0417\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043c\u0430\u0442\u0440\u0438\u0446\u044b\\n\\n&#187;);<br \/>\n for(i=0;i<n;i++)\n\t{\n\tfor(j=0;j<n;j++)\n\t    a[i][j]=0;\n\t}\n for(i=0;i<n;i++)\n\t{\n\ta[i][i]=1;\n\ta[i][n-i-1]=1;\n\t}\n printf(\"\\n\\n\u0418\u0441\u043a\u043e\u043c\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430:\\n\\n\");\n for(i=0;i<n;i++)\n\t{\n\tfor(j=0;j<n;j++)\n\t     printf(\"%5d\",a[i][j]);\n\tprintf(\"\\n\");\n\t}\n getch();\n}\n\n\n\n\n#include <conio.h><br \/>\n#include <stdio.h><br \/>\n#define n 15<br \/>\nvoid main()<br \/>\n{<br \/>\n clrscr();<br \/>\n int a[n][n],i,j,max=0,k,max_i,max_j;<br \/>\n  printf(&#171;Vvedite elementi matrici:\\n&#187;);<br \/>\n for(i=0;i<n;i++)\n\tfor(j=0;j<n;j++)\n\t     scanf(\"%5d\",&#038;a[i][j]);\n   for(i=0;i<n;i++)\n     if(a[i][i]>max)<br \/>\n     {<br \/>\n      max=a[i][i];<br \/>\n      max_i=i;<br \/>\n      max_j=j;<br \/>\n     }<br \/>\n   for(i=0,j=n-1;i<n;i++,j--)\n     if(a[i][j]>max)<br \/>\n\t    {<br \/>\n\t     max=a[i][j];<br \/>\n\t     max_i=i;<br \/>\n\t     max_j=j;<br \/>\n\t    }<br \/>\n       k=a[7][7];<br \/>\n       a[7][7]=a[max_i][max_j];<br \/>\n       a[max_i][max_j]=k;<br \/>\n printf(&#171;\\n\\nItogovaia matrica:\\n&#187;);<br \/>\n for(i=0;i<n;i++)\n\t{\n\tfor(j=0;j<n;j++)\n\t     printf(\"%5d\",a[i][j]);\n\t     printf(\"\\n\");\n\t}\n getch();\n}\n\n\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b #include #include #define size 5 void main() { clrscr(); int a[size][size],i,j,b[size][size]; printf(&#171;\\t\\t\u0422\u0440\u0430\u043d\u0441\u043f\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430\\n\\n&#187;); printf(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443:\\n&#187;); for(i=0;i<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"_links":{"self":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/23672"}],"collection":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23672"}],"version-history":[{"count":1,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/23672\/revisions"}],"predecessor-version":[{"id":23674,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/23672\/revisions\/23674"}],"wp:attachment":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}