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

Имеется массив на N чисел, заменить все отрицательные числа на 0 и вывести этот массив.

Ответы

Автор ответа: xom9ik1
0
const n=100;
var m:array[1..n] of integer;
i:integer;
begin
readln(n);
for i:=1 to n do
begin
read(m[i]);
if m[i]<0 then m[i]=0;
end;
for i:=1 to n do
write(m[i], ' ');
end.

Константой задано число n.
Во второй строке задано n чисел для массива.
Похожие вопросы
Предмет: Английский язык, автор: annatarasova7
Выбери верное время:
Andy and Bill __________________shopping for the last 2 hours!


Варианты ответов

has been doing
have been doing
have done
has done
Вопрос 2
Выбери верное время:
I'm absolutely tired because we__________ all evening.


Варианты ответов

have been playing football
has been playing football
have played football
has played football
Вопрос 3
Выбери верное время:
So, I_______________Kate and Nastya yet.


Варианты ответов

haven't met
have met
has met
have meet
Вопрос 4
Выбери верное время:
Oh, poor Jane! She ___________her leg! So, she has a cast now.


Варианты ответов

has broken
have broken
has been breaking
has breaked
Вопрос 5
Выбери верное время:
My granny____________to this restaurant for 10 years! She loves this place.


Варианты ответов

have been going
has gone
has been going
have gone
Вопрос 6
Выбери правильное время:
I___________ all day! Time for a break.


Варианты ответов

have been studiing
have been studied
have studied
have been studying
Вопрос 7
Выбери правильное время:
Amanda ____________the school drama club.


Варианты ответов

has joined
have joined
has been joining
has been joined
Вопрос 8
Выбери правильное время:
Dasha___________for 2 days to prepare for the dinner party.


Варианты ответов

has been cooking
have been cooking
has cooked
have cooked
Вопрос 9
Выбери правильное время:
Mum _______ to the shop. She'll be back soon.


Варианты ответов

have gone
has gone
has been gone
gone
Вопрос 10
Выбери правильное время:
We__________all day... We're exhausted.


Варианты ответов

have been studying
has been studying
is studying
have studied




ОТВЕТЫЫЫЫЫЫЫЫЫЫЫЫ СРОЧНО
Предмет: Алгебра, автор: amir824639
Предмет: Математика, автор: машка131