i need a program that will do this
h(k)=h(k-1)+sqrt(h(k-1))
like this
h1=ho+sqrt(ho)
h2= h1+sqrt(h1)
and so on
i have to have a 50 results for h , ho is a const
PLZ I NEED IT FOR TUMMOROW
i need a program that will do this
h(k)=h(k-1)+sqrt(h(k-1))
like this
h1=ho+sqrt(ho)
h2= h1+sqrt(h1)
and so on
i have to have a 50 results for h , ho is a const
PLZ I NEED IT FOR TUMMOROW
if u wanna do it do it urself
i made the code :
Program yees;
const
h0 = 12;
var
h:array[1..100] of real;
i,k:integer;
begin
readln(k)
h[1] := h0 + sqrt(h0);
for i:=2 to k do
h := h[i-1] + sqrt(h[i-1]);
writeln(h0);
for i:=1 to k do
writeln(h);
end.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.