I'm working on comp. science 101 work and I have 4 methods left to do which I can't figure out and I've been trying for hours. Very elementary but difficult for smoeone new to computers and Ruby.
For example: I need to write a method called 'diff' which accepts 2 parameters and returns the difference between the two, (but withoutputs) ...I can only figure out using puts.

Figured it out.

I'm working on comp. science 101 work and I have 4 methods left to do which I can't figure out and I've been trying for hours. Very elementary but difficult for smoeone new to computers and Ruby.
For example: I need to write a method called 'diff' which accepts 2 parameters and returns the difference between the two, (but withoutputs) ...I can only figure out using puts.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.