Одновимірні масиви

програми
Задача1. Сортування елементів масиву за зростанням.

uses crt;
const n=15;
var i,j:integer;
a:array[1..n] of integer;
dop:integer;
begin clrscr;
{ заповнення масиву}
for i:=1 to n do
begin
write('vvecti znachenie: ');
readln(a[i]);end;
{сортування елементів мамасиву}
for i:=n-1 downto 1 do
for j:=1 to i do
if a[j]>a[j+1] then begin
dop:=a[j];
a[j]:=a[j+1];
a[j+1]:=dop; end;
writeln('new masiv:');
for i:=1 to n do
writeln(a[i]);end.
Кiлькiсть переглядiв: 4311

Коментарi

  • Joecat

    2017-11-20 07:25:58

    essay assignment help college essay helper i need help writing my essay [url=https://collegeessay.us.com]need help with essay writing[/url]...

  • Joecat

    2017-11-20 02:43:08

    essay writing services review college essay writing services essay writing service [url=https://essaywritingservices.us.com]best essay writing service reviews[/url]...

  • DonaldAbark

    2017-11-19 23:04:10

    путный сайт http://only4you.store/...

  • Nathankix

    2017-11-19 22:43:20

    свитер с оленями [url=https://www.sogrevay.ru/]свитер с оленями[/url]...

  • Joecat

    2017-11-19 21:52:43

    college essay writing a personal essay for college help in essay writing [url=https://collegeessay.us.com]essay help service[/url]...

  • EldonRig

    2017-11-19 12:11:55

    [url=https://ratingfx.ru/]Paxforex отзывы[/url]...

  • BrandonSag

    2017-11-19 12:11:55

    [url=https://ratingfx.ru/]Paxforex отзывы[/url]...

  • Loans

    2017-11-19 12:06:58

    fast cash loans with monthly payments quick cash loans bad credit quick loans [url=https://quickloans.us.com]quick personal loans with no credit check[/url]...

  • Loan

    2017-11-19 10:58:22

    need a quick loan today online quick loans no credit check quick loans [url=https://quickloans.us.com]quick loans[/url]...

  • SPAamach

    2017-11-19 09:11:35

    Our Super company is engaged in the promotion and creation of portals for spa center in the city Portland for your business on a turn-key basis. Develop the right website, which will not only look perfect, but also help attract more regular customers. With creation web site spa center we will find for you efficient solution, we will make an attractive modern design Considered easy to navigate through Internet project. We have been creating for many years Internet services, and beautiful know what exactly is required to create a quality online project spa salon...