Jump to content

GCD algorith using ASP????


Guest dayen

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...