Help with calling a function

Mar 31, 2013 at 9:11pm
My professor gave us an assignment asking the following:
"Create a function called larger which takes two integers as its parameters and returns the larger of the two integers"

Maybe he just worded it oddly but I'm having trouble figuring out what to do... The assignments due tonight and hasn't responded to the emails I sent days ago, so any help is greatly appreciated, thanks!
Mar 31, 2013 at 9:13pm
You should compare two integers and return the maximum of them.
Mar 31, 2013 at 9:17pm
I think he just worded it weird. I pretty much just have to create a program that picks the bigger int?
Mar 31, 2013 at 9:20pm
Yes, the function shall return the greatest value of two integers.
Apr 1, 2013 at 2:28am
i appreciate the reply, submitted the code earlier.
Topic archived. No new replies allowed.