Apr 11, 2012 #1 B bunti Member level 1 Joined Jun 3, 2011 Messages 35 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 1,488 i just want some help in defining a function with more than one variable.I tried the code below but it is giving an error...plz let me know what is the mistake. function(r,s)=fn(x,y) r=2*x; s=3*y;
i just want some help in defining a function with more than one variable.I tried the code below but it is giving an error...plz let me know what is the mistake. function(r,s)=fn(x,y) r=2*x; s=3*y;
Apr 11, 2012 #2 digi001 Full Member level 5 Joined Apr 5, 2011 Messages 244 Helped 22 Reputation 44 Reaction score 21 Trophy points 1,298 Activity points 2,904 what is the error you are getting?
Apr 11, 2012 #3 B bunti Member level 1 Joined Jun 3, 2011 Messages 35 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 1,488 Function definitions are not permitted in this context.