Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Feb 24th, 2005, 9:38 PM   #1
mimic
Newbie
 
Join Date: Feb 2005
Posts: 2
Rep Power: 0 mimic is on a distinguished road
How to i convert this alphacode to assembly ??

function factorial(n)
{
define sum;
if n <= 1 then
return 1;
sum = 1;
for i=2 to n do
sum = sum * i;
return sum;
}

function binomial(n,k)
{
if n <= 0 or k => 0 or n <= k then
return 1;
return factorial(n)/(factorial(k)*factorial(n-k));
}

print binomial(5,3)






I think it's easy for you all help me pls...
Best Regards,
Mimic
mimic is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:09 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC