• Паскаль:    Напишіть програму обчислення добутку а(а+1)(а+2)....(а+n-1)

Ответы 1

  • program Zd;var  a, n, I, res: Integer;begin  WriteLn('Input the a: ');  Read(a);  WriteLn('Input the n: ');  Read(n);  res:=a;  for i:=1 to n - 1 do    res:=res * (a + i);  WriteLn('Результат: ', res);end.
    • Автор:

      delilah
    • 6 лет назад
    • 0
  • Добавить свой ответ

Войти через Google

или

Забыли пароль?

У меня нет аккаунта, я хочу Зарегистрироваться

How much to ban the user?
1 hour 1 day 100 years