Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
qbasic:
input "число а=", a
x = a
do
x = x ^ 2 + 1
n = n + 1
loop until x > = 1000000
print a, x, n
max(n) = 7, при a = 0
var
i,n,a: integer;
begin
readln(n);
for i: =1 to n do
read(a);
if (a mod 3=0)and(a mod 5> 0) then write(a,' ');
end;
writeln;
end.
Популярные вопросы