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

составьте для вычислителя алгоритм, пользуясь которым он запросит последовательность N чисел и сообщит среднее арифметическое.

Ответы

Автор ответа: nekete98
0

проверь орфографию и если не будет потом работать измени i:=1 на i:=0

pascal 

var 

    n,z,l:integer;

    a:array[1..30] of integer;

begin

readln('kol-vo chisel-',n);

for i:=1 to n do

begin

readln(a[i]);

l=l+a[i];

end;

z=l/n;

writeln('srednee arifm-',z);

end.

 

Похожие вопросы
Предмет: Английский язык, автор: okipnanadija
Make the questions.

Example: I am hungry. - Are you hungry?

1. They can dance. __________________________________________________________?

2. I like reading books.________________________________________________________?

3. We live in a big city.________________________________________________________?

4. I can play the guitar.________________________________________________________?

5. They are cool.______________________________________________________________?

6. We are pen friends.__________________________________________________________?

7. The parrot eats apples.________________________________________________________?

8. They are Austrian.___________________________________________________________?

9. Brad listens to the radio._______________________________________________________?

10. Elephants eat grass.__________________________________________________________?

11. I am good at school._________________________________________________________?

12. They go to school by bus._____________________________________________________?

13. Henry does his homework.____________________________________________________?

14. Simon reads comics._________________________________________________________?

15. Sally smokes.______________________________________________________________?

Put the verbs into the correct form

1. Samantha ______________________________ (to go) to the running track

2. My sister ______________________________ (to play) basketball in her school with her sport teacher.

3. They ______________________________ (to be) installing their cd-rom

4. We ______________________________ (to have) breakfast .

5. He ______________________________ (to study) in a university .

6. Does she have a problem ? no , she ______________________________ (do) not

7. Salima and Sara ______________________________ (to eat) their lunch .

8. The baker and the lawyer ______________________________ (to be) workers .

9. She ______________________________ (to be) 12 years old .

10. Her uncle ______________________________ (to put) the screwdriver and the hammer away.