Question: How to use proc

Hi, i am learning how to use "proc", could you please help me with this?

Case 1:

ReturnInteger:=proc(x,y,z)::integer;
g:=3+y;
x^2-g;
end proc:

ReturnInteger(3,2,4)

Case 2: How do I have a few outputs at a time?

Outp:=proc(x,y,z)::integer;
x^4+3
x+3*y;
y+z;
end proc:

Outp(3,4,2)

I am looking for it to produce 3 answers.

Question 3, when i took away the "::integer", it still works. May I know what is it really for? I tried to read the help but did not really understand.

Please help. Thanks.

Please Wait...