Greatest common divisor: Difference between revisions

m
Helping adjust submission from first-time user
(Improved example moved to main page)
m (Helping adjust submission from first-time user)
Line 3,412:
_gcd( abs(a), abs(b) )</syntaxhighlight>
 
=={{header|FutureBASICFutureBasic}}==
This is a nearly-trivial 6-line function, so we've dressed it up a bit to show how easily FutureBASICFB builds a full, interactive application. In FB, when you complete your code and hit RUN, the built app can open in as little as 3 seconds.
 
[[File:New_app_in_finder.png|200px|frameless]]
Line 3,426:
[[File:Running_app.png|280px|frameless]]
 
<syntaxhighlight lang="FutureBASICfuturebasic">
begin enum 1 // Object tags
_fldA
Line 3,483:
on dialog fn doDialog
handleevents
 
</syntaxhighlight>
{{output}}
[[File:GCD_of_1234567890_and_9876543210.png|200px|framed]]
 
 
 
=={{header|GAP}}==
719

edits