greggklein Posted April 27, 2008 Share Posted April 27, 2008 Is there an easier way to find Greatest Common Factor: Do $x = Random(1,500,1) $y = Random(1,500,1) Until $x < $y While $y/$x > Floor($y/$x) $newx = $x $x = $y-$x*Floor($y/$x) $y = $newx WEnd $gcf = $x MsgBox("","GCF","The GCF of "&$x& " and "& $y& " is "&$x) Link to comment Share on other sites More sharing options...
JustinReno Posted April 27, 2008 Share Posted April 27, 2008 Yes. Link to comment Share on other sites More sharing options...
greggklein Posted April 27, 2008 Author Share Posted April 27, 2008 Yes.what is it? Link to comment Share on other sites More sharing options...
JustinReno Posted April 27, 2008 Share Posted April 27, 2008 Thats for you to ask in the correct subforum. Link to comment Share on other sites More sharing options...
greggklein Posted April 27, 2008 Author Share Posted April 27, 2008 Thats for you to ask in the correct subforum.what sub forum would taht be? Link to comment Share on other sites More sharing options...
JustinReno Posted April 27, 2008 Share Posted April 27, 2008 What do you think it is? Link to comment Share on other sites More sharing options...
greggklein Posted April 27, 2008 Author Share Posted April 27, 2008 What do you think it is?why are you running me around Link to comment Share on other sites More sharing options...
JustinReno Posted April 27, 2008 Share Posted April 27, 2008 (edited) I'm not, its common sense to post in the H-E-L-P forum when you need help, not in the forum "Post your cool and finished scripts" Edit: Typo Edited April 27, 2008 by JustinReno Link to comment Share on other sites More sharing options...
greggklein Posted April 27, 2008 Author Share Posted April 27, 2008 I'm not, its commen sense to post in the H-E-L-P forum when you need help, not in the forum "Post your cool and finished scripts"This site is not well organized. I didn't ralize I was in the wrong place. Next time just tell me where, instead of f'n with me Link to comment Share on other sites More sharing options...
JustinReno Posted April 27, 2008 Share Posted April 27, 2008 Its organized perfectly well. Only people who cannot identify context clues to post in the right sub forum say that. Link to comment Share on other sites More sharing options...
Innovative Posted April 27, 2008 Share Posted April 27, 2008 Its organized perfectly well. Only people who cannot identify context clues to post in the right sub forum say that.Correction , it should be , only people who are disabled in some ways cannot identify the correct section to post . Link to comment Share on other sites More sharing options...
ProgAndy Posted April 27, 2008 Share Posted April 27, 2008 Thers another way, I think I found it on wikipedia: Func _EuklidGGT($zahl1, $zahl2) while $zahl2 <> 0 $temp = Mod($zahl1, $zahl2) $zahl1 = $zahl2 $zahl2 = $temp WEnd return $zahl1 EndFunc *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes 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