It looks like you're using an Ad Blocker.

Please white-list or disable AboveTopSecret.com in your ad-blocking tool.

Thank you.

 

Some features of ATS will be disabled while you continue to use an ad-blocker.

 

I don't suppose anyone knows anything about functions in HOPE?

page: 1
0

log in

join
share:

posted on Oct, 16 2003 @ 09:06 AM
link   
I've got this question I'm having trouble with:

Q. Write a function with two integer parameters which will determine whether the larger integer is odd.

I've got this function to find the larger integer which works:

dec max : num#num -> num;
--- max (x,y) y)
then x
else y;

but I did this function to find the odd integer but it doesn't work:
dec isodd : num -> truval;
--- isodd (x,y) truval;
--- isodd x



posted on Oct, 16 2003 @ 10:45 AM
link   
Man that takes me back...and reminds me that I don't remember jack # about it...
Sorry John...though I'm sure there are some students here, who it's a lot more fresh for...good luck!



posted on Oct, 16 2003 @ 12:15 PM
link   
It's ok I figured it out thank God, this is one module I'm not digging at all.



 
0

log in

join