В
Все
М
Математика
О
ОБЖ
У
Українська мова
Д
Другие предметы
Х
Химия
М
Музыка
Н
Немецкий язык
Б
Беларуская мова
Э
Экономика
Ф
Физика
Б
Биология
О
Окружающий мир
Р
Русский язык
У
Українська література
Ф
Французский язык
П
Психология
А
Алгебра
О
Обществознание
М
МХК
В
Видео-ответы
Г
География
П
Право
Г
Геометрия
А
Английский язык
И
Информатика
Қ
Қазақ тiлi
Л
Литература
И
История
vahovskayanp08tsj
vahovskayanp08tsj
13.10.2020 13:29 •  Информатика

Нужен цикл "пока" из реальной жизни схемой

Показать ответ
Ответ:
TemirMamekov
TemirMamekov
04.12.2022 02:17

e verbs in

lian restaurant. He couldn't

(3)

(work

iness, his own restaurant. At

Adam wasn't interested inTraveller

e verbs in

lian restaurant. He couldn't

(3)

(work

iness, his own restaurant. At

Adam wasn't interested inTraveller

e verbs in

lian restaurant. He couldn't

(3)

(work

iness, his own restaurant. At

Adam wasn't interested inTraveller

e verbs in

lian restaurant. He couldn't

(3)

(work

iness, his own restaurant. At

Adam wasn't interested inTraveller

e verbs in

lian restaurant. He couldn't

(3)

(work

iness, his own restaurant. At

Adam wasn't interested inTraveller

e verbs in

lian restaurant. He couldn't

(3)

(work

iness, his own restaurant. At

Adam wasn't interested inTraveller

e verbs in

lian restaurant. He couldn't

(3)

(work

iness, his own restaurant. At

Adam wasn't interested inTraveller

e verbs in

lian restaurant. He couldn't

(3)

(work

iness, his own restaurant. At

Adam wasn't interested inTraveller

e verbs in

lian restaurant. He couldn't

(3)

(work

iness, his own restaurant. At

Adam wasn't interested inTraveller

e verbs in

lian restaurant. He couldn't

(3)

(work

iness, his own restaurant. At

Adam wasn't interested inTraveller

e verbs in

lian restaurant. He couldn't

(3)

(work

iness, his own restaurant. At

Adam wasn't interested inTraveller

e verbs in

lian restaurant. He couldn't

(3)

(work

iness, his own restaurant. At

Adam wasn't interested in

0,0(0 оценок)
Ответ:
AMeleschckina2
AMeleschckina2
11.03.2020 19:06

Задание 2.

program prog;

function F(n:integer):integer;

begin

   if n<=1 then F:=1

   else F:=F(n-1)+F(n-2)

end;

begin

   write(F(7))

end.

Вывод программы: 21

Задание 3.

program prog;

function F(n:integer):integer;

begin

   if n<=1 then F:=1

   else F:=F(n-1)*F(n-2)+2

end;

begin

   write(F(5))

end.

Вывод программы: 87

Задание 5.

program prog;

procedure F(n:integer);

begin

   write('*');

   if n > 0 then begin

       F(n-2);

       F(n-2);

       F(n div 2);

   end

end;

begin

   F(5);

end.

Вывод программы (34 звёздочки):

Задание 6.

program prog;

procedure F(n: integer);

begin

   write('*');

   if n > 0 then begin

       F(n-3);

       F(n-2);

       F(n div 2);

       F(n div 2);

   end

end;

begin

   F(6);

end.

Вывод программы (97 звёздочек):

Задание 7.

program prog;

procedure F(n: integer);

begin

   write('*');

   if n > 0 then begin

       write('*');

       F(n-2);

       F(n-2);

       F(n div 2);

   end

end;

begin

   F(6);

end.

Вывод программы (77 звёздочек):

0,0(0 оценок)
Популярные вопросы: Информатика
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота