Greatest common divisor: Difference between revisions

Content added Content deleted
Line 3,430: Line 3,430:


=={{header|FutureBASIC}}==
=={{header|FutureBASIC}}==
<syntaxhighlight lang="FutureBASIC">
This is a nearly-trivial 6-line function, so we've dressed it up a bit to show how easily FutureBASIC 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.
This is a nearly-trivial 6-line function, so we've dressed it up a bit to show how easily FutureBASIC 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.


Line 3,444: Line 3,443:
[[File:Running_app.png|280px|frameless]]
[[File:Running_app.png|280px|frameless]]


<syntaxhighlight lang="FutureBASIC">
'''CODE'''
<syntaxhighlight>

begin enum 1 // Object tags
begin enum 1 // Object tags
_fldA
_fldA
Line 3,505: Line 3,502:


</syntaxhighlight>
</syntaxhighlight>
{{output}}

[[File:GCD_of_814997010_and_4644003.png|200px|framed]]
{{out}}
[[File:GCD_of_1234567890_and_9876543210.png|200px|framed]]
<pre>[[File:GCD_of_814997010_and_4644003.png|200px|framed]] [[File:GCD_of_1234567890_and_9876543210.png|200px|framed]] [[File:GCD_of_51015_and_15051.png|200px|framed]] [[File:GCD_of_1881_and_8118.png|200px|framed]] [[File:GCD_of_42426466_and_2445968527.png|200px|framed]] [[File:GCD_of_123_and_empty_field.png|200px|framed]] </pre>∏
[[File:GCD_of_51015_and_15051.png|200px|framed]]
[[File:GCD_of_1881_and_8118.png|200px|framed]]
[[File:GCD_of_42426466_and_2445968527.png|200px|framed]]
[[File:GCD_of_123_and_empty_field.png|200px|framed]]


=={{header|GAP}}==
=={{header|GAP}}==