Jump to content

Ethiopian multiplication: Difference between revisions

return is a keyword, not a function
(Undo revision 65955. No better or worse than the references given. Certainly should not be put at the head of the task.)
(return is a keyword, not a function)
Line 184:
<lang awk>function halve(x)
{
return( int(x/2))
}
 
function double(x)
{
return( x*2)
}
 
function iseven(x)
{
return(( x%2) == 0)
}
 
Line 207:
plicand = double(plicand)
}
return( r)
}
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.