Guest dayen Posted February 25, 2006 Share Posted February 25, 2006 I want to make a program about GCD(greatest common divide) Algorithm using ASP, but I don't know how. anyone who can help me, please send me the program. thank you Link to comment Share on other sites More sharing options...
Pollux Posted February 27, 2006 Share Posted February 27, 2006 Generally you're expected to have a go at writing the code yourself before you request help, but I'll point you in the right direction. Euclid's algorithm is very simple so I suggest you use that. Here it is in pseudocode from wikipedia: function gcd(a, b) if b = 0 return a else return gcd(b, a mod b) I'll leave it up to you to convert it to vbscript to use in your ASP. If you get stuck, post again and someone will help you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now