Дано словесное описание алгоритма:
z:=2; d:=7; k=0;
Начало цикла
пока d>=z
d:=d – z; k=k+1;
конец цикла;
Вывести результат на экран.
Составить блок-схему в виде циклического алгоритма. Определить количество циклов k. Написать программу на языке Паскаль с использованием оператора цикла с предусловием.Предмет:
ИнформатикаАвтор:
louis3b9kprogram first;
var z,d,k:integer;
begin
writeln('Input z,d,k');
readln(z,d,k);
if (d>=z) then
d:=d-z
k:=k+1
writeln(d,' ',k);
readln;
end.
Автор:
vega38program xxx;
var z,d,k : integer;
begin
z:=2; d:=7; k:=0;
while (d>=z) do
begin
d:=d-z;
k:=k+1
end;
writeln(d,' ',k);
readln
end.
Автор:
beartnyoДобавить свой ответ
Change each sentence to direct speech
a) She said that she was leaving at six. I’m leaving at six, she said
b) Не said Peter often went fishing. ……………………………………………, he said
c) She said she would be back later. ………………………………………….., she said
d) I said that I had just seen Mark . ……………………………………………., I said
e) Alan said that they had left at 6.00. …………………………………………, Alan said
f) Helen said that she was working. ……………………………………………, Helen said
g) I said that we were late. …………………………………………………………, I said
h) He said he would phone back. ………………………………………………., he said
i) David said that he felt all right. …………………………………………….., David said
j) She said she loved ice-cream. ………………………………………………., she said
Предмет:
Английский языкАвтор:
susannahgotmОтветов:
Смотреть
Не согласись: Tim has got a camel.
Предмет:
Английский языкАвтор:
darcy5somОтветов:
Смотреть
Предмет:
Українська моваАвтор:
elisaОтветов:
Смотреть