#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

#### Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Posts: 15Member
i confused with my homework,i very don't understand when the programs solution without using pascal,when the theory says:
procedure or function mode
x:=x(y,x)+1
for example:
function A(i:integer;j:integer):integer;
begin
if(i>=2)and(j>=2)then A:=(i-1,A(i,j-1)+1)
else
if(i>=2)and (j=1)then A:=A(i-1,2)
else
if(i=1)and(j>=1)then A:=j
else
a:=-1
end;
the question says when the program called A(4,7) why the answer is 509 explain the way!
i don't know solving the problem when i found this A:=(i-1,4(i,j-1)+1)and A:=(i-1,2)and like A(x-1,y)+1 and ext please help me to know solving this problem