F
Fred Ige
Hi
I'm really new to Ruby
as such it took me about an hour to register ^^'...
That being said
I am trying to figure out why this program I made keeps returning as "0"
def f(x)
return (5/9) * (x-32)
end
x=1001
print(f(x))
Not complicated at all
I'm just intending for the x value 1001 to plug its self into the
temperature equation and print that value
Thanks for reading
I'm really new to Ruby
as such it took me about an hour to register ^^'...
That being said
I am trying to figure out why this program I made keeps returning as "0"
def f(x)
return (5/9) * (x-32)
end
x=1001
print(f(x))
Not complicated at all
I'm just intending for the x value 1001 to plug its self into the
temperature equation and print that value
Thanks for reading