J
J
jfoifjgijd2015-09-25 19:20:35
Pascal
jfoifjgijd, 2015-09-25 19:20:35

Find the product of the series 1*1/2*1/3*//*1/n, n is entered by the user. Programming Pascal. Can you help me find it?

Find the product of the series 1*1/2*1/3*//*1/n, n is entered by the user. Programming Pascal.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Martyanov, 2015-09-25
@vilgeforce

And how do you see this "help"?

A
Alexander, 2015-09-25
@NeiroNx

I don't remember the Pascal syntax.
but I remember JavaScript)))

var n=prompt();var a=1;for(i=1;i <= n;i++){a=a*(1/i);};alert(a);

A
Anton Fedoryan, 2015-09-28
@AnnTHony

What is the complexity of the cycle to start?

x := 0
for i := 1 to n do
  begin
    x := x * 1/i
  end;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question