{"id":26047,"date":"2016-03-26T21:53:17","date_gmt":"2016-03-26T18:53:17","guid":{"rendered":"http:\/\/studentpmr.ru\/?p=26047"},"modified":"2016-03-27T10:50:26","modified_gmt":"2016-03-27T07:50:26","slug":"unik","status":"publish","type":"post","link":"https:\/\/studentpmr.ru\/?p=26047","title":{"rendered":"\u0417\u0430\u0434\u0430\u043d\u0438\u044f \u043f\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u043d\u0430 Borland C."},"content":{"rendered":"<p style=\"text-align: justify; text-indent: 18.0pt; punctuation-wrap: simple; text-autospace: none; vertical-align: baseline; margin: 0cm 0cm 6.0pt 0cm;\">1. \u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430.<!--more--><\/p>\n<p style=\"margin-bottom: 6.0pt; text-align: justify; punctuation-wrap: simple; text-autospace: none; vertical-align: baseline;\">\u0412 \u0441\u0440\u0435\u0434\u0435 Borland C \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e-\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0438\u0441\u043a \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u0437 2 \u0447\u0438\u0441\u0435\u043b \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"\/wp-content\/uploads\/1\/image001.gif\" alt=\"\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043et \u0438\u0437 2 \u0447\u0438\u0441\u0435\u043b\" width=\"612\" height=\"756\" \/><\/p>\n<p>#include &lt;stdio.h&gt;<\/p>\n<p>#include &lt;conio.h&gt;<\/p>\n<p>int max(int a,int b)<\/p>\n<p>{<\/p>\n<p>if (a&gt;b)\/\/\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043a\u0430\u043a\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435<\/p>\n<p>return a;<\/p>\n<p>else<\/p>\n<p>return b;<\/p>\n<p>}<\/p>\n<p>void main()<\/p>\n<p>{<\/p>\n<p>clrscr();\/\/\u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u044d\u043a\u0440\u0430\u043d\u0430<\/p>\n<p>int a,b,c,maks;\/\/maks-\u043c\u0430\u043a\u0441 \u0447\u0438\u0441\u043b\u043e c \u2013 \u043f\u043e\u0432\u0442 \u0432\u0432\u043e\u0434<\/p>\n<p>m:printf(&#171;\u0412\u0432\u0435\u0434\u0438 \u0430=&#187;);<\/p>\n<p>scanf(&#171;%d&#187;,&amp;a);\/\/\u0432\u0432\u043e\u0434 \u0447\u0438\u0441\u043b\u0430 \u0430<\/p>\n<p>printf(&#187; \u0412\u0432\u0435\u0434\u0438 b=&#187;);<\/p>\n<p>scanf(&#171;%d&#187;,&amp;b);\/\/ \u0432\u0432\u043e\u0434 \u0447\u0438\u0441\u043b\u0430 b<\/p>\n<p>maks=max(a,b);\/\/\u0432\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/p>\n<p>printf(&#187; \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e=%d&#187;,maks);\/\/\u0432\u044b\u0432\u043e\u0434 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e<\/p>\n<p>printf(&#187; \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0432\u0432\u043e\u0434? 1-\u0434\u0430 0-\u043d\u0435\u0442 =&#187;);\/\/\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043f\u043e\u0432\u0442 \u0432\u0432\u043e\u0434<\/p>\n<p>scanf(&#171;%d&#187;,&amp;c);<\/p>\n<p>if (c==1)<\/p>\n<p>goto m;<\/p>\n<p>getch();<\/p>\n<p>}<\/p>\n<p style=\"margin-bottom: 6.0pt; text-align: justify;\">2.\u041d\u0430\u0439\u0442\u0438 \u043d\u043e\u043c\u0435\u0440 \u043f\u0435\u0440\u0432\u043e\u0439 \u0438\u0437 \u0441\u0442\u0440\u043e\u043a, \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0445 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u00ad\u043c\u0435\u043d\u0442\u0430.<\/p>\n<p style=\"margin-bottom: 6.0pt; text-align: justify;\">\u0412 \u0441\u0440\u0435\u0434\u0435 Borland C \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e-\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u0438\u0441\u043a 1 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0432\u0448\u0435\u0439\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0438, \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0439 \u043d\u0438 1 \u043e\u0442\u0440\u0438\u0446 \u044d\u043b-\u0442\u0430 \u0438 \u0432\u044b\u0432\u043e\u0434\u044f\u0449\u0435\u0439 \u044d\u0442\u043e\u0442 \u043d\u043e\u043c\u0435\u0440<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"\/wp-content\/uploads\/1\/image006.gif\" alt=\"\u041d\u0430\u0439\u0442\u0438 \u043d\u043e\u043c\u0435\u0440 \u043f\u0435\u0440\u0432\u043e\u0439 \u0438\u0437 \u0441\u0442\u0440\u043e\u043a, \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0445 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u00ad\u043c\u0435\u043d\u0442\u0430\" width=\"588\" height=\"806\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/1\/image008.gif\" alt=\"\" width=\"2\" height=\"218\" \/><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"\/wp-content\/uploads\/1\/image009.gif\" alt=\"\" width=\"584\" height=\"309\" \/><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"\/wp-content\/uploads\/1\/image010.gif\" alt=\"\" width=\"118\" height=\"36\" \/><\/p>\n<p>#include &lt;stdio.h&gt;<\/p>\n<p>#include &lt;conio.h&gt;<\/p>\n<p>#include &lt;stdlib.h&gt;<\/p>\n<p>void main()<\/p>\n<p>{<\/p>\n<p>randomize();<\/p>\n<p>clrscr();\/\/\u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u044d\u043a\u0440\u0430\u043d\u0430<\/p>\n<p>int *a;<\/p>\n<p>m:int n,i,j,c,fl,fl1=0;\/\/n-\u0440\u0430\u0437\u043c \u043c\u0430\u0441 i,j-\u043f\u0435\u0440\u0435\u043c \u0446\u0438\u043a\u043b\u0430 fl-\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0441\u0442\u0440\u043e\u043a fl1-\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a<\/p>\n<p>printf(&#171;\u0412\u0432\u0435\u0434\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c=&#187;);<\/p>\n<p>scanf(&#171;%d&#187;,&amp;n);\/\/\u0432\u0432\u043e\u0434 \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430<\/p>\n<p>a=new int[n*n];\/\/\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0438\u043d\u0430\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0430<\/p>\n<p>for (i=0;i&lt;n;i++)<\/p>\n<p>{<\/p>\n<p>printf(&#187; &#171;);<\/p>\n<p>for(j=0;j&lt;n;j++)<\/p>\n<p>{<\/p>\n<p>*(a+i*n+j)=random(15)-5;\/\/\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0441\u043b\u0443\u0447 \u0447\u0438\u0441\u043b\u0430\u043c\u0438<\/p>\n<p>printf(&#171;%3d&#187;,*(a+i*n+j));\/\/\u0432\u044b\u0432\u043e\u0434 \u043c\u0430\u0442\u0440\u0438\u0446\u044b<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>for (i=0;i&lt;n;i++)<\/p>\n<p>{<\/p>\n<p>fl=0;<\/p>\n<p>for(j=0;j&lt;n;j++)<\/p>\n<p>if (*(a+i*n+j)&lt;0)\/\/\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/p>\n<p>fl=1;<\/p>\n<p>if (fl==0)\/\/\u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u043d\u0438 1 \u043e\u0442\u0440\u0438\u0446\u0430\u0442 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435<\/p>\n<p>{<\/p>\n<p>printf(&#187; \u041d\u043e\u043c\u0435\u0440 \u0441\u0442\u0440\u043e\u043a\u0438=%d&#187;,i+1);\/\/\u0432\u044b\u0432\u043e\u0434 \u043d\u043e\u043c\u0435\u0440\u0430 \u0441\u0442\u0440\u043e\u043a\u0438<\/p>\n<p>fl1=1;<\/p>\n<p>break;\/\/\u0432\u044b\u0445\u043e\u0434 \u0438\u0437 \u0446\u0438\u043a\u043b\u0430<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>if(fl1==0)\/\/\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a<\/p>\n<p>printf(&#187; \u0422\u0430\u043a\u0438\u0445 \u0441\u0442\u0440\u043e\u043a \u043d\u0435\u0442&#187;);<\/p>\n<p>printf(&#187; \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0432\u0432\u043e\u0434? 1-\u0434\u0430 0-\u043d\u0435\u0442 =&#187;);\/\/\u0417\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0439 \u0432\u0432\u043e\u0434<\/p>\n<p>scanf(&#171;%d&#187;,&amp;c);<\/p>\n<p>if (c==1)<\/p>\n<p>goto m;<\/p>\n<p>getch();<\/p>\n<p>}<\/p>\n<p>3.\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u0430\u044f \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0441\u0442\u0440\u043e\u043a\u0430 \u0446\u0435\u043b\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c.<\/p>\n<p>\u0412 \u0441\u0440\u0435\u0434\u0435 Borland C \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e-\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u0430\u044f \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0441\u0442\u0440\u043e\u043a\u0430 \u0446\u0435\u043b\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"\/wp-content\/uploads\/1\/image011.gif\" alt=\"\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u0430\u044f \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0441\u0442\u0440\u043e\u043a\u0430 \u0446\u0435\u043b\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c.\" width=\"612\" height=\"864\" \/><\/p>\n<p>#include &lt;stdio.h&gt;<\/p>\n<p>#include &lt;conio.h&gt;<\/p>\n<p>#include &lt;string.h&gt;<\/p>\n<p>#include &lt;stdlib.h&gt;<\/p>\n<p>void main()<\/p>\n<p>{<\/p>\n<p>clrscr();\/\/\u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u044d\u043a\u0440\u0430\u043d\u0430<\/p>\n<p>char mas[80];<\/p>\n<p>m:int a,c,k=0;<\/p>\n<p>fflush(stdin);\/\/\u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u0431\u0443\u0444\u0435\u0440\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b<\/p>\n<p>printf(&#171;\u0412\u0432\u0435\u0434\u0438 \u0441\u0442\u0440\u043e\u043a\u0443=&#187;);<\/p>\n<p>gets(mas);\/\/\u0432\u0432\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u0438<\/p>\n<p>a=atoi(mas);\/\/\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0447\u0438\u0441\u043b\u043e<\/p>\n<p>while(a!=0)\/\/\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043a\u043e-\u0432\u0430 \u0446\u0438\u0444\u0440 \u0432 \u0447\u0438\u0441\u043b\u0435 \u0430<\/p>\n<p>{<\/p>\n<p>a\/=10;<\/p>\n<p>k++;<\/p>\n<p>}<\/p>\n<p>if(k==strlen(mas))\/\/\u0435\u0441\u043b\u0438 \u043a\u043e-\u0432\u043e \u0446\u0438\u0444\u0440 \u0440\u0430\u0432\u043d\u043e \u043a\u043e-\u0432\u0443 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0430 \u044f\u0432\u043b \u0446\u0435\u043b\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c<\/p>\n<p>printf(&#187; \u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u044f\u0432\u043b \u0446\u0435\u043b\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c&#187;);<\/p>\n<p>else<\/p>\n<p>printf(&#187; \u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043d\u0435 \u044f\u0432\u043b \u0446\u0435\u043b\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c&#187;);<\/p>\n<p>printf(&#187; \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0432\u0432\u043e\u0434? 1-\u0434\u0430 0-\u043d\u0435\u0442 =&#187;);\/\/\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043d\u044b\u0439 \u0432\u0432\u043e\u0434<\/p>\n<p>scanf(&#171;%d&#187;,&amp;c);<\/p>\n<p>if (c==1)<\/p>\n<p>goto m;<\/p>\n<p>getch();<\/p>\n<p>}<\/p>\n<p style=\"text-align: justify; background: white;\">4.\u041e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c AEROFLOT (\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0443\u043d\u043a\u0442\u0430 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0440\u0435\u0439\u0441\u0430, \u043d\u043e\u043c\u0435\u0440 \u0440\u0435\u0439\u0441\u0430, \u0442\u0438\u043f \u0441\u0430\u043c\u043e\u043b\u0451\u0442\u0430).<\/p>\n<p style=\"text-align: justify; background: white;\">\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0443\u044e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f: \u0432\u0432\u043e\u0434 \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0438\u0437 7 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0442\u0438\u043f\u0430 AEROFLOT; \u0432\u044b\u0432\u043e\u0434 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u043d\u043e\u043c\u0435\u0440\u043e\u0432 \u0440\u0435\u0439\u0441\u043e\u0432 \u0438 \u0442\u0438\u043f\u043e\u0432 \u0441\u0430\u043c\u043e\u043b\u0451\u0442\u043e\u0432, \u0432\u044b\u043b\u0435\u0442\u0430\u044e\u0449\u0438\u0445 \u0432 \u043f\u0443\u043d\u043a\u0442 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u043e\u0432\u043f\u0430\u043b\u043e \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c, \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u043c \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b (\u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u0438\u0445 \u0440\u0435\u0439\u0441\u043e\u0432 \u043d\u0435\u0442, \u0432\u044b\u0434\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"\/wp-content\/uploads\/1\/image013.gif\" alt=\"\u041e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c AEROFLOT\" width=\"616\" height=\"864\" \/><\/p>\n<p>#include &lt;stdio.h&gt;<\/p>\n<p>#include &lt;conio.h&gt;<\/p>\n<p>#include &lt;string.h&gt;<\/p>\n<p>struct aeroflot\/\/\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/p>\n<p>{<\/p>\n<p>char punkt[80];<\/p>\n<p>int reis;<\/p>\n<p>char tip[80];<\/p>\n<p>};<\/p>\n<p>void vvod(aeroflot *pb)\/\/\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u0432\u043e\u0434\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440<\/p>\n<p>{<\/p>\n<p>int i;<\/p>\n<p>for (i=0;i&lt;7;i++)<\/p>\n<p>{<\/p>\n<p>printf(&#187; \u0412\u0432\u0435\u0434\u0438 \u043d\u0430\u0437\u0432 \u043f\u0443\u043d\u043a\u0442\u0430 =&#187;);<\/p>\n<p>fflush(stdin);<\/p>\n<p>gets((pb+i)-&gt;punkt);\/\/\u0432\u0432\u043e\u0434 \u043f\u0443\u043d\u043a\u0442\u0430<\/p>\n<p>printf(&#187; \u0412\u0432\u0435\u0434\u0438 \u043d\u043e\u043c\u0435\u0440 \u0440\u0435\u0439\u0441\u0430=&#187;);<\/p>\n<p>scanf(&#171;%d&#187;,&amp;(pb+i)-&gt;reis);\/\/\u0432\u0432\u043e\u0434 \u0440\u0435\u0439\u0441\u0430<\/p>\n<p>printf(&#187; \u0412\u0432\u0435\u0434\u0438 \u0442\u0438\u043f \u0441\u0430\u043c\u043e\u043b\u0451\u0442\u0430=&#187;);<\/p>\n<p>fflush(stdin);<\/p>\n<p>gets((pb+i)-&gt;tip);\/\/\u0432\u0432\u043e\u0434 \u0442\u0438\u043f\u0430<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>void vivod(aeroflot *pb)\/\/\u0444-\u0438\u044f \u0432\u044b\u0432\u043e\u0434\u0430<\/p>\n<p>{<\/p>\n<p>int i;<\/p>\n<p>for (i=0;i&lt;7;i++)<\/p>\n<p>printf(&#187; %s %d %s&#187;,(pb+i)-&gt;punkt,(pb+i)-&gt;reis,(pb+i)-&gt;tip);<\/p>\n<p>}<\/p>\n<p>void poisk(aeroflot *pb)\/\/\u0444-\u0438\u044f \u043f\u043e\u0438\u0441\u043a\u0430<\/p>\n<p>{<\/p>\n<p>int i,fl=0;<\/p>\n<p>char sl[20];<\/p>\n<p>printf(&#187; \u0412\u0432\u0435\u0434\u0438 \u0438\u0441\u043a\u043e\u043c\u044b\u0439 \u043f\u0443\u043d\u043a\u0442=&#187;);<\/p>\n<p>fflush(stdin);<\/p>\n<p>gets(sl);\/\/\u0432\u0432\u043e\u0434 \u0438\u0441\u043a\u043e\u043c\u043e\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430<\/p>\n<p>for(i=0;i&lt;7;i++)<\/p>\n<p>if(strcmp((pb+i)-&gt;punkt,sl)==0)\/\/\u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a<\/p>\n<p>{<\/p>\n<p>printf(&#187; %d %s&#187;,(pb+i)-&gt;reis,(pb+i)-&gt;tip);<\/p>\n<p>fl=1;<\/p>\n<p>}<\/p>\n<p>if (fl==0)\/\/\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u043a\u0438\u0445 \u0440\u0435\u0439\u0441\u043e\u0432<\/p>\n<p>printf(&#187; \u0422\u0430\u043a\u0438\u0445 \u0440\u0435\u0439\u0441\u043e\u0432 \u043d\u0435\u0442&#187;);<\/p>\n<p>}<\/p>\n<p>void main()<\/p>\n<p>{<\/p>\n<p>clrscr();<\/p>\n<p>m:int c;<\/p>\n<p>aeroflot mas[7];<\/p>\n<p>vvod(mas);\/\/\u0432\u044b\u0437\u043e\u0432 \u0444-\u0438\u0438 \u0432\u0432\u043e\u0434\u0430<\/p>\n<p>printf(&#187; &#171;);<\/p>\n<p>vivod(mas);\/\/\u0432\u044b\u0437\u043e\u0432 \u0444-\u0438\u0438 \u0432\u044b\u0432\u043e\u0434\u0430<\/p>\n<p>poisk(mas);\/\/\u0432\u044b\u0437\u043e\u0432 \u0444-\u0438\u0438 \u043f\u043e\u0438\u0441\u043a\u0430<\/p>\n<p>printf(&#187; \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0432\u0432\u043e\u0434? 1-\u0434\u0430 0-\u043d\u0435\u0442 =&#187;);\/\/\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043d\u044b\u0439 \u0432\u0432\u043e\u0434<\/p>\n<p>scanf(&#171;%d&#187;,&amp;c);<\/p>\n<p>if (c==1)<\/p>\n<p>goto m;<\/p>\n<p>getch();<\/p>\n<p>}<\/p>\n<p>5.\u0414\u0430\u043d \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430. \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0443\u043c\u043c\u0443 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 \u0447\u0438\u0441\u0435\u043b \u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0435 \u0438 \u0432\u0441\u0435 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043d\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b<\/p>\n<p>\u0412 \u0441\u0440\u0435\u0434\u0435 Borland C \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e-\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0447\u0442\u0435\u043d\u0438\u0435 \u0438\u0437 1 \u0444\u0430\u0439\u043b\u0430 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0443\u043c\u043c\u044b \u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0430\u0439\u043b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"\/wp-content\/uploads\/1\/image014.gif\" alt=\"\u0447\u0442\u0435\u043d\u0438\u0435 \u0438\u0437 1 \u0444\u0430\u0439\u043b\u0430 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0443\u043c\u043c\u044b \u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0430\u0439\u043b\" width=\"612\" height=\"855\" \/><\/p>\n<p>#include &lt;stdio.h&gt;<\/p>\n<p>#include &lt;conio.h&gt;<\/p>\n<p>#include &lt;stdlib.h&gt;<\/p>\n<p>void main()<\/p>\n<p>{<\/p>\n<p>clrscr();\/\/\u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u044d\u043a\u0440\u0430\u043d\u0430<\/p>\n<p>FILE *in,*out;<\/p>\n<p>float a,sum=0;<\/p>\n<p>if ((in=fopen(&#171;C:vas.txt&#187;,&#187;rt&#187;))==0)\/\/\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 vas.txt<\/p>\n<p>{<\/p>\n<p>printf(&#171;Ohibka&#187;);<\/p>\n<p>exit(1);<\/p>\n<p>}<\/p>\n<p>if ((out=fopen(&#171;C:rez.txt&#187;,&#187;wt&#187;))==0)\/\/\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 rez.txt<\/p>\n<p>{<\/p>\n<p>printf(&#171;Ohibka&#187;);<\/p>\n<p>exit(1);<\/p>\n<p>}<\/p>\n<p>while(!feof(in))<\/p>\n<p>{<\/p>\n<p>fscanf(in,&#187;%f&#187;,&amp;a);\/\/\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u0434\u0440\u043e\u0431\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u0432 \u043f\u0435\u0440\u0435\u043c \u0430<\/p>\n<p>sum+=a*a;\/\/\u043d\u0430\u0440\u0430\u0449\u0438\u0432\u0430\u043d\u0438\u0435 \u0441\u0443\u043c\u043c\u044b<\/p>\n<p>}<\/p>\n<p>fprintf(out,&#187;%f&#187;,sum);\/\/\u0437\u0430\u043d\u0435\u0441\u0435\u043d\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0432 \u0444\u0430\u0439\u043b rez.txt<\/p>\n<p>fclose(in);\/\/\u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 vas.txt<\/p>\n<p>fclose(out);\/\/\u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 rez.txt<\/p>\n<p>getch();<\/p>\n<p>}<\/p>\n<p>6.\u0412 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0435\u0441\u0442\u044c \u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b. \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u0437 \u043d\u043e\u043c\u0435\u0440\u043e\u0432 \u044d\u0442\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"\/wp-content\/uploads\/1\/image016.gif\" alt=\"\u0412 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0435\u0441\u0442\u044c \u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b. \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u0437 \u043d\u043e\u043c\u0435\u0440\u043e\u0432 \u044d\u0442\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\" width=\"612\" height=\"915\" \/><\/p>\n<p>#include &lt;stdio.h&gt;<\/p>\n<p>#include &lt;conio.h&gt;<\/p>\n<p>void main()<\/p>\n<p>{<\/p>\n<p>clrscr();\/\/\u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u044d\u043a\u0440\u0430\u043d\u0430<\/p>\n<p>int *a;<\/p>\n<p>m:int b,c,k=0,n,i;<\/p>\n<p>printf(&#187; \u0412\u0432\u0435\u0434\u0438 \u0434\u043b\u0438\u043d\u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438=&#187;);<\/p>\n<p>scanf(&#171;%d&#187;,&amp;n);\/\/\u0432\u0432\u043e\u0434 \u0434\u043b\u0438\u043d\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438<\/p>\n<p>a=new int[n];\/\/\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430<\/p>\n<p>for(i=0;i&lt;n;i++)<\/p>\n<p>{<\/p>\n<p>printf(&#187; \u0432\u0432\u0435\u0434\u0438 \u0447\u0438\u0441\u043b\u043e=&#187;);<\/p>\n<p>scanf(&#171;%d&#187;,&amp;b);\/\/\u0432\u0432\u043e\u0434 \u0447\u0438\u0441\u043b\u0430<\/p>\n<p>if (b==0)\/\/\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0443\u043b\u0435\u0432\u043e\u0435 \u043b\u0438 \u0447\u0438\u0441\u043b\u043e<\/p>\n<p>{<\/p>\n<p>*(a+k)=b;\/\/\u0437\u0430\u043d\u0435\u0441\u0435\u043d\u0438\u0435 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u043d\u043e\u043c\u0435\u0440\u0430<\/p>\n<p>k++;\/\/\u043d\u0430\u0440\u0430\u0449\u0438\u0432\u0430\u043d\u0438\u0435 \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0430<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>printf(&#187; &#171;);<\/p>\n<p>if (k==0)\/\/\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0443\u043b\u0435\u0432\u044b\u0445<\/p>\n<p>printf(&#187; \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043d\u0435\u0442 \u043d\u0443\u043b\u0435\u0432\u044b\u0445 \u044d\u043b-\u0442\u043e\u0432&#187;);<\/p>\n<p>else<\/p>\n<p>for(i=0;i&lt;k;i++)<\/p>\n<p>printf(&#171;%2d&#187;,*(a+i));\/\/\u0432\u044b\u0432\u043e\u0434 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430<\/p>\n<p>printf(&#187; \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0432\u0432\u043e\u0434? 1-\u0434\u0430 0-\u043d\u0435\u0442 =&#187;);\/\/\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043d\u044b\u0439 \u0432\u0432\u043e\u0434<\/p>\n<p>scanf(&#171;%d&#187;,&amp;c);<\/p>\n<p>if (c==1)<\/p>\n<p>goto m;<\/p>\n<p>getch();<\/p>\n<p>}<\/p>\n<p style=\"text-align: justify; background: white;\">7. \u0414\u0430\u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b<i>.<\/i> \u0417\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u0441\u0435 \u0435\u0451 \u0447\u043b\u0435\u043d\u044b, \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0433\u043e <i>Z<\/i>, \u044d\u0442\u0438\u043c \u0447\u0438\u0441\u043b\u043e\u043c. \u041f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043c\u0435\u043d.<\/p>\n<p>\u0412 \u0441\u0440\u0435\u0434\u0435 Borland C \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e-\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0432\u0432\u043e\u0434 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0447\u0438\u0441\u0435\u043b \u0438 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0447\u0438\u0441\u043b\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 z \u043d\u0430 z \u0438 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u043a\u043e-\u0432\u043e \u0442\u0430\u043a\u0438\u0445 \u0437\u0430\u043c\u0435\u043d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"\/wp-content\/uploads\/1\/image018.gif\" alt=\"\u0432\u0432\u043e\u0434 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0447\u0438\u0441\u0435\u043b\" width=\"612\" height=\"795\" \/><\/p>\n<p>#include &lt;stdio.h&gt;<\/p>\n<p>#include &lt;conio.h&gt;<\/p>\n<p>void main()<\/p>\n<p>{<\/p>\n<p>clrscr();<\/p>\n<p>int *a;<\/p>\n<p>m:int c,n,i,kol=0,z;<\/p>\n<p>printf(&#187; \u0412\u0432\u0435\u0434\u0438 \u0447\u0438\u0441\u043b\u043e z=&#187;);<\/p>\n<p>scanf(&#171;%d&#187;,&amp;z);\/\/\u0432\u0432\u043e\u0434 \u0447\u0438\u0441\u043b\u0430 z<\/p>\n<p>printf(&#187; \u0412\u0432\u0435\u0434\u0438 \u0434\u043b\u0438\u043d\u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438=&#187;);<\/p>\n<p>scanf(&#171;%d&#187;,&amp;n);\/\/\u0432\u0432\u043e\u0434 \u0434\u043b\u0438\u043d\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438<\/p>\n<p>a=new int[n];\/\/\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0438\u043d\u0430\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0430<\/p>\n<p>for(i=0;i&lt;n;i++)<\/p>\n<p>{<\/p>\n<p>printf(&#187; \u0432\u0432\u0435\u0434\u0438 \u0447\u0438\u0441\u043b\u043e=&#187;);<\/p>\n<p>scanf(&#171;%d&#187;,a+i);\/\/\u0437\u0430\u043d\u0435\u0441\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432<\/p>\n<p>if (*(a+i)&gt;z)\/\/\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u043b\u0438 \u0447\u0438\u0441\u043b\u043e \u0447\u0438\u0441\u043b\u0430 z<\/p>\n<p>{<\/p>\n<p>*(a+i)=z;\/\/\u043f\u0440\u0438\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435<\/p>\n<p>kol++;\/\/\u043d\u0430\u0440\u0430\u0449\u0438\u0432\u0430\u043d\u0438\u0435 \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0430<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>printf(&#187; &#171;);<\/p>\n<p>for (i=0;i&lt;n;i++)<\/p>\n<p>printf(&#171;%3d&#187;,*(a+i));\/\/\u0432\u044b\u0432\u043e\u0434 \u043c\u0430\u0441\u0441\u0438\u0432\u0430<\/p>\n<p>if (kol==0)\/\/\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u043c\u0435\u043d<\/p>\n<p>printf(&#187; \u0417\u0430\u043c\u0435\u043d \u043d\u0435 \u0431\u044b\u043b\u043e&#187;);<\/p>\n<p>else<\/p>\n<p>printf(&#187; \u041a\u043e-\u0432\u043e \u0437\u0430\u043c\u0435\u043d=%d&#187;,kol);\/\/\u0432\u044b\u0432\u043e\u0434 \u043a\u043e-\u0432\u0430 \u0437\u0430\u043c\u0435\u043d<\/p>\n<p>printf(&#187; \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0432\u0432\u043e\u0434? 1-\u0434\u0430 0-\u043d\u0435\u0442 =&#187;);\/\/\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043d\u044b\u0439 \u0432\u0432\u043e\u0434<\/p>\n<p>scanf(&#171;%d&#187;,&amp;c);<\/p>\n<p>if (c==1)<\/p>\n<p>goto m;<\/p>\n<p>getch();<\/p>\n<p>}<\/p>\n<p style=\"text-align: justify; background: white;\">8. \u0414\u0430\u043d\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430. \u041f\u0435\u0440\u0435\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c \u043d\u043e\u043c\u0435\u0440\u043e\u043c m.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"\/wp-content\/uploads\/1\/image020.gif\" alt=\"\u041f\u0435\u0440\u0435\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c \u043d\u043e\u043c\u0435\u0440\u043e\u043c m\" width=\"612\" height=\"918\" \/><\/p>\n<p>#include &lt;stdio.h&gt;<\/p>\n<p>#include &lt;conio.h&gt;<\/p>\n<p>#include &lt;stdlib.h&gt;<\/p>\n<p>#define n 5<\/p>\n<p>void main()<\/p>\n<p>{<\/p>\n<p>randomize();<\/p>\n<p>clrscr();\/\/\u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u044d\u043a\u0440\u0430\u043d\u0430<\/p>\n<p>int mas[n][n];<\/p>\n<p>m:int i,j,c,m,ind,max,tmp;<\/p>\n<p>printf(&#187; \u0412\u0432\u0435\u0434\u0438 \u043d\u043e\u043c\u0435\u0440 \u0441\u0442\u0440\u043e\u043a\u0438=&#187;);<\/p>\n<p>scanf(&#171;%d&#187;,&amp;m);\/\/\u0432\u0432\u043e\u0434 \u0447\u0438\u0441\u043b\u0430 m<\/p>\n<p>for(i=0;i&lt;n;i++)<\/p>\n<p>{<\/p>\n<p>printf(&#187; &#171;);<\/p>\n<p>for(j=0;j&lt;n;j++)<\/p>\n<p>{<\/p>\n<p>mas[i][j]=random(10);\/\/\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0441\u043b\u0443\u0447 \u0447\u0438\u0441\u043b\u0430\u043c\u0438<\/p>\n<p>printf(&#171;%3d&#187;,mas[i][j]);\/\/\u0432\u044b\u0432\u043e\u0434 \u043c\u0430\u0441\u0441\u0438\u0432\u0430<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>max=mas[0][0];\/\/\u043f\u0440\u0438\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 max \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u044d\u043b-\u0442\u0430 \u0433\u043b \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438<\/p>\n<p>ind=0;\/\/\u043e\u0431\u043d\u0443\u043b\u0435\u043d\u0438\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u0430<\/p>\n<p>for(i=1;i&lt;n;i++)\/\/\u043f\u043e\u0438\u0441\u043a \u043c\u0430\u043a\u0441 \u044d\u043b-\u0442\u0430 \u043d\u0430 \u0433\u043b \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438<\/p>\n<p>if(max&lt;mas[i][i])<\/p>\n<p>{<\/p>\n<p>max=mas[i][i];<\/p>\n<p>ind=i;<\/p>\n<p>}<\/p>\n<p>m&#8212;;<\/p>\n<p>for(i=0;i&lt;n;i++)\/\/\u043e\u0431\u043c\u0435\u043d \u0441\u0442\u0440\u043e\u043a<\/p>\n<p>{<\/p>\n<p>tmp=mas[m][i];<\/p>\n<p>mas[m][i]=mas[ind][i];<\/p>\n<p>mas[ind][i]=tmp;<\/p>\n<p>}<\/p>\n<p>printf(&#187; &#171;);<\/p>\n<p>for(i=0;i&lt;n;i++)<\/p>\n<p>{<\/p>\n<p>printf(&#187; &#171;);<\/p>\n<p>for(j=0;j&lt;n;j++)<\/p>\n<p>printf(&#171;%3d&#187;,mas[i][j]);\/\/\u0432\u044b\u0432\u043e\u0434 \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430<\/p>\n<p>}<\/p>\n<p>printf(&#187; \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0432\u0432\u043e\u0434? 1-\u0434\u0430 0-\u043d\u0435\u0442 =&#187;);\/\/\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043d\u044b\u0439 \u0432\u0432\u043e\u0434<\/p>\n<p>scanf(&#171;%d&#187;,&amp;c);<\/p>\n<p>if (c==1)<\/p>\n<p>goto m;<\/p>\n<p>getch();<\/p>\n<p>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430.<\/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\/26047"}],"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=26047"}],"version-history":[{"count":8,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/26047\/revisions"}],"predecessor-version":[{"id":26056,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/26047\/revisions\/26056"}],"wp:attachment":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}