Jump to content

Greatest common divisor: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 3,433:
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.
 
[[File:New_app_in_finder.png|200px|frameless]]
 
It also appears in the dock, where you can run it again with a single click.
 
[[File:New_app_in_Mac_dock.png|45px|frameless]]
 
The running app looks like this—we added a button to generate random examples to
process, and an interactive design that instantly responds to each change in an input field.
 
[[File:Running_app.png|280px|frameless]]
 
'''CODE'''
Line 3,506:
</syntaxhighlight>
 
'''OUTPUT'''
{{out}}
<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>∏
 
 
34

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.