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

помогите пожалуйста! вообщем задачи надо составить по паскалю

1. Дан массив состоящий из 12 случайных целых чисел от -5 до 12. Все его элементы умножить на последний элемент.

2.Дан массив состоящий их 7 вещественных чисел. Из всех положительных элементов массива вычесть элемент с номером k, из всех отрицательных n ( числа k и n вводятся с клавиатуры). Нулевые элементы оставить без изменения.

3. В массиве хранится информация о росте 25 челловек. Определить, на сколько рост самого высокого человека превышает рост самого низкого.
 
4. Дан массив целых чисел. Найти номер первого четного элемента массива (массив просматривайте с конца, используя цикл for...downto). Если четных елементов нет. то должно быть напечатано соответствующее сообщение. 

Ответы

Автор ответа: Easystreet
0
1)
var a: array[1..12] of integer;
begin
  for i:=1 to 12 do read(a[i]);
  for i:=1 to 12 do write(a[i]*a[12], ' ');
end.
Похожие вопросы
Предмет: История, автор: tubik0706
Предмет: Английский язык, автор: badalananus70
Past perfect/Past simple Complete the sentences with the verbs in brackets. Use Past Perfect or Past Simple tens
1.- Tom . ..(give) me the book yesterday but I knew he... (not read) it.
2.- Alice came back from Australia and she said that she (enjoy) a lot there.
3.-When I arrived home I realised that I (not phone) my grandparents.
4.- The postman (come) after I (leave) the office.
5.-When the old lady (return) to her flat, she (see) that burglars (break) into.
6.-The train (leave) before Helen (arrive) at the station.
7.-My grandmother (make) some cheese sandwiches when I . (get) home at 5.30
8.-After she (study) the lesson, she (do) the exercises.
9.- Barbara (forget) that she (not do) any shopping for the weekend. 10.- Jack (be) very tired because he (work) until late.
11.- Before Henry ... (come) home, his friend (take)the dog for a walk. 12.-By the time Linda (park) her car, her boyfriend (drink) two cups of coffee.
13.-My dog .. (be) hungry because he (have)nothing to eat since breakfast.
14.-I wondered where I (see) him before.
15.-The robbers (escape) by the time the police (arrive)
16.-The policeman (arrest) the man who .(steal) the money.
17.-The computer (show) that the George Hurt. (commit) some crimes in the past.
18.- The man (check) all the windows after he (lock) the front door.
19.-When I (open) the chocolate box, I saw that somebody (eat) all of them.
20.-When Elisa (meet) Arthur, he (finish) his studies at university. 21.-I .... (recognize) him because I (see) his photo in the newspaper before.
22.- Margaret was upset because her husband (forget) her birthday. ​
Предмет: Математика, автор: Diana12r