Somebody please help me

Add a reply

Posted by teja 616 days ago:
I am trying to do my first submission and it is failing to upload giving Application Error (Rails)
My code is given below, please help me with this as this is my first submission

def bc(m,n)puts f(m)/(f(n)*f(m-n))end
def f(n) n==1?1:n*f(n-1)end
m,n=ARGV
bc(m.slice(0,1).to_i,n.to_i)
Posted by flagitious 616 days ago:
Well I don't know about that rails error, but the problems use STDIN, so using ARGV won't work.

Add a reply