Разбор 11 задания ЕГЭ по информатике (К. Поляков, в 78): С каким минимальным аргументом а
Объяснение 11 задания ЕГЭ по информатике (К. Поляков, вариант 78): решение варианта с объяснением. Вызов представленной ниже рекурсивной функции приводит к появлению на экране чисел и точек. С каким минимальным натуральным аргументом а нужно вызвать эту функцию, чтобы в результате на экране появилось 5 точек (не обязательно подряд, между точками могут встречаться числа) Паскаль: function gz(a:integer):integer; var p:integer; begin if a меньше 1 then begin gz:1; exit; end; if a mod 30 then beg
|
|