Предмет: Информатика, автор: erke999000

Дан массив из N элементов (N- четное). Распечатать его в следующем порядке: a1,an,a2,a(n-1)...,a(n/2),a(n/2+1). Через Pascal ABC. Помогите пожалуйста.

Ответы

Автор ответа: petyaGavrikov
0
const n=10;
var a:array[1..n] of integer;
i:integer;
begin
Randomize;
writeln('Массив A:');
for i:=1 to n do
 begin
 a[i]:=random(51);
 write(a[i]:4);
 end;
writeln;
for i:=1 to n div 2 do write(a[i]:4, a[n-i+1]:4);
writeln;
end.

Пример:
Массив A:
12 44 36 9 1 13 10 11 37 30
12 30 44 37 36 11 9 10 1 13
Похожие вопросы
Предмет: Английский язык, автор: everinfeyaaaa
Lenny’s booked a flight. She _____ to Amsterdam on Tuesday morning.
flyes
is flying
flys
2. Today is Friday. He ______ swimming on Wednesday afternoon.
went
has gone
go
3. My sister _____ up at 6 am every day.
get
is getting
gets
4. Molly ____ just ____ the lesson.
was, started
had, started
has, started
5. Me and my friend sometimes _____ football after school.

play
plays
are playing
6. James ____ already _____ in the park.
have, walked
has, walked
did, walk
7. We ______ the poem now.
aren’t reading
don’t read
didn’t read
8. Choose the correct sentence
When did he build this house?
When did he built this house?
When has he built this house?
9. Next year he ____ 19 years old.
will be
is
will
10. When _____ Mary _____ school?
did, leave
has, left
was, leave
11. Listen! It ______ .
rained
is raining
rains
12. Bayron _____ this poem in 1814.
has written
written
wrote
13. Привет! Куда ты идешь?
Hi! Where do you go?
Hi! Where are you going?
Hi! Where do you going?
14. _____ you _____ your dog every morning?
Does, walk
Do, walk
Are, walking
15. –That box is heavy.
–I _____ you with it.
will help
help
am helping
16. Он ехал на велосипеде, когда она его увидела.
He rode a bicycle when she saw him.
He was riding a bicycle when she saw him.
He was riding a bicycle when she has seen him.
17. Susan is busy. She _____ on the phone.
talks
is talking
was talking
18. It’s dark. I _____ anything.
am not seeing
don’t see
doesn’t see
19. I _______ the piano at 9 pm yesterday.
played
was playing
were playing
20. Kate _____ the project by 5 o’clock tomorrow.
will finish
finishes
will have finished
Предмет: Алгебра, автор: rodionovapolina598
Предмет: Немецкий язык, автор: demidovarsenij11
Предмет: Алгебра, автор: Аноним