zettacode 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/files.zettacode2/arithmetic.integer/0815}.txt +14 -0
- data/files.zettacode2/arithmetic.integer/11l}.txt +9 -0
- data/files.zettacode2/arithmetic.integer/360_assembly.txt +55 -0
- data/files.zettacode2/arithmetic.integer/6502_assembly}.txt +50 -0
- data/files.zettacode2/arithmetic.integer/68000_assembly.txt +24 -0
- data/files.zettacode2/arithmetic.integer/aarch64_assembly.txt +137 -0
- data/files.zettacode2/arithmetic.integer/abap.txt +25 -0
- data/files.zettacode2/arithmetic.integer/acl2.txt +21 -0
- data/files.zettacode2/arithmetic.integer/action!.txt +36 -0
- data/files.zettacode2/arithmetic.integer/ada.txt +20 -0
- data/files.zettacode2/arithmetic.integer/aikido.txt +10 -0
- data/files.zettacode2/arithmetic.integer/algol_68.txt +14 -0
- data/files.zettacode2/arithmetic.integer/algol_w.txt +16 -0
- data/files.zettacode2/arithmetic.integer/amigae.txt +14 -0
- data/files.zettacode2/arithmetic.integer/apl.txt +7 -0
- data/files.zettacode2/arithmetic.integer/applescript.txt +16 -0
- data/files.zettacode2/arithmetic.integer/arm_assembly.txt +293 -0
- data/files.zettacode2/arithmetic.integer/arturo.txt +10 -0
- data/files.zettacode2/arithmetic.integer/asymptote.txt +17 -0
- data/files.zettacode2/arithmetic.integer/autohotkey.txt +20 -0
- data/files.zettacode2/arithmetic.integer/avail.txt +13 -0
- data/files.zettacode2/arithmetic.integer/awk.txt +12 -0
- data/files.zettacode2/arithmetic.integer/basic.txt +56 -0
- data/files.zettacode2/arithmetic.integer/basic256.txt +11 -0
- data/files.zettacode2/arithmetic.integer/batch_file.txt +7 -0
- data/files.zettacode2/arithmetic.integer/bbc_basic.txt +9 -0
- data/files.zettacode2/arithmetic.integer/bc.txt +8 -0
- data/files.zettacode2/arithmetic.integer/befunge.txt +6 -0
- data/files.zettacode2/arithmetic.integer/bqn.txt +22 -0
- data/files.zettacode2/arithmetic.integer/bracmat.txt +19 -0
- data/files.zettacode2/arithmetic.integer/brat.txt +8 -0
- data/files.zettacode2/arithmetic.integer/c++.txt +12 -0
- data/files.zettacode2/arithmetic.integer/c.txt +17 -0
- data/files.zettacode2/arithmetic.integer/c_sharp|c#.txt +17 -0
- data/files.zettacode2/arithmetic.integer/chef.txt +37 -0
- data/files.zettacode2/arithmetic.integer/clipper.txt +11 -0
- data/files.zettacode2/arithmetic.integer/clojure.txt +18 -0
- data/files.zettacode2/arithmetic.integer/cobol.txt +44 -0
- data/files.zettacode2/arithmetic.integer/common_lisp.txt +29 -0
- data/files.zettacode2/arithmetic.integer/component_pascal.txt +32 -0
- data/files.zettacode2/arithmetic.integer/crystal.txt +11 -0
- data/files.zettacode2/arithmetic.integer/d.txt +17 -0
- data/files.zettacode2/arithmetic.integer/dc.txt +10 -0
- data/files.zettacode2/arithmetic.integer/dcl.txt +8 -0
- data/files.zettacode2/arithmetic.integer/delphi.txt +19 -0
- data/files.zettacode2/arithmetic.integer/dwscript.txt +9 -0
- data/files.zettacode2/arithmetic.integer/dyalect.txt +13 -0
- data/files.zettacode2/arithmetic.integer/e.txt +9 -0
- data/files.zettacode2/arithmetic.integer/easylang.txt +9 -0
- data/files.zettacode2/arithmetic.integer/ecl.txt +33 -0
- data/files.zettacode2/arithmetic.integer/efene.txt +16 -0
- data/files.zettacode2/arithmetic.integer/eiffel.txt +32 -0
- data/files.zettacode2/arithmetic.integer/elena.txt +16 -0
- data/files.zettacode2/arithmetic.integer/elixir.txt +26 -0
- data/files.zettacode2/arithmetic.integer/emojicode.txt +9 -0
- data/files.zettacode2/arithmetic.integer/erlang.txt +15 -0
- data/files.zettacode2/arithmetic.integer/erre.txt +20 -0
- data/files.zettacode2/arithmetic.integer/euphoria.txt +13 -0
- data/files.zettacode2/arithmetic.integer/excel.txt +32 -0
- data/files.zettacode2/arithmetic.integer/f_sharp|f#.txt +15 -0
- data/files.zettacode2/arithmetic.integer/factor.txt +17 -0
- data/files.zettacode2/arithmetic.integer/false.txt +8 -0
- data/files.zettacode2/arithmetic.integer/fermat.txt +10 -0
- data/files.zettacode2/arithmetic.integer/forth.txt +19 -0
- data/files.zettacode2/arithmetic.integer/fortran.txt +15 -0
- data/files.zettacode2/arithmetic.integer/freebasic.txt +18 -0
- data/files.zettacode2/arithmetic.integer/friendly_interactive_shell.txt +10 -0
- data/files.zettacode2/arithmetic.integer/frink.txt +10 -0
- data/files.zettacode2/arithmetic.integer/futurebasic.txt +158 -0
- data/files.zettacode2/arithmetic.integer/gambas.txt +30 -0
- data/files.zettacode2/arithmetic.integer/gap.txt +15 -0
- data/files.zettacode2/arithmetic.integer/genie.txt +23 -0
- data/files.zettacode2/arithmetic.integer/george.txt +7 -0
- data/files.zettacode2/arithmetic.integer/go.txt +66 -0
- data/files.zettacode2/arithmetic.integer/groovy.txt +18 -0
- data/files.zettacode2/arithmetic.integer/harbour.txt +11 -0
- data/files.zettacode2/arithmetic.integer/haskell.txt +16 -0
- data/files.zettacode2/arithmetic.integer/haxe.txt +13 -0
- data/files.zettacode2/arithmetic.integer/hicest.txt +26 -0
- data/files.zettacode2/arithmetic.integer/holyc.txt +14 -0
- data/files.zettacode2/arithmetic.integer/i.txt +11 -0
- data/files.zettacode2/arithmetic.integer/icon}}_and_{{header|unicon.txt +13 -0
- data/files.zettacode2/arithmetic.integer/inform_7.txt +27 -0
- data/files.zettacode2/arithmetic.integer/j.txt +18 -0
- data/files.zettacode2/arithmetic.integer/java.txt +22 -0
- data/files.zettacode2/arithmetic.integer/javascript.txt +30 -0
- data/files.zettacode2/arithmetic.integer/jq.txt +17 -0
- data/files.zettacode2/arithmetic.integer/jsish.txt +33 -0
- data/files.zettacode2/arithmetic.integer/julia.txt +5 -0
- data/files.zettacode2/arithmetic.integer/kotlin.txt +41 -0
- data/files.zettacode2/arithmetic.integer/labview.txt +2 -0
- data/files.zettacode2/arithmetic.integer/lambdatalk.txt +23 -0
- data/files.zettacode2/arithmetic.integer/lasso.txt +8 -0
- data/files.zettacode2/arithmetic.integer/lfe.txt +32 -0
- data/files.zettacode2/arithmetic.integer/liberty_basic.txt +12 -0
- data/files.zettacode2/arithmetic.integer/lil.txt +14 -0
- data/files.zettacode2/arithmetic.integer/lingo.txt +10 -0
- data/files.zettacode2/arithmetic.integer/little.txt +15 -0
- data/files.zettacode2/arithmetic.integer/livecode.txt +17 -0
- data/files.zettacode2/arithmetic.integer/logo.txt +11 -0
- data/files.zettacode2/arithmetic.integer/lse64.txt +10 -0
- data/files.zettacode2/arithmetic.integer/lua.txt +9 -0
- data/files.zettacode2/arithmetic.integer/m2000_interpreter.txt +54 -0
- data/files.zettacode2/arithmetic.integer/m4.txt +17 -0
- data/files.zettacode2/arithmetic.integer/maple.txt +25 -0
- data/files.zettacode2/arithmetic.integer/mathcad.txt +51 -0
- data/files.zettacode2/arithmetic.integer/mathematica}}-{{header|wolfram_language.txt +18 -0
- data/files.zettacode2/arithmetic.integer/matlab}}_-_{{header|octave.txt +8 -0
- data/files.zettacode2/arithmetic.integer/maxima.txt +10 -0
- data/files.zettacode2/arithmetic.integer/maxscript.txt +8 -0
- data/files.zettacode2/arithmetic.integer/mercury.txt +44 -0
- data/files.zettacode2/arithmetic.integer/metafont.txt +19 -0
- data/files.zettacode2/arithmetic.integer/min.txt +5 -0
- data/files.zettacode2/arithmetic.integer/ml-i.txt +18 -0
- data/files.zettacode2/arithmetic.integer/modula-2.txt +31 -0
- data/files.zettacode2/arithmetic.integer/modula-3.txt +15 -0
- data/files.zettacode2/arithmetic.integer/mumps.txt +52 -0
- data/files.zettacode2/arithmetic.integer/nanoquery.txt +13 -0
- data/files.zettacode2/arithmetic.integer/nemerle.txt +18 -0
- data/files.zettacode2/arithmetic.integer/netrexx.txt +14 -0
- data/files.zettacode2/arithmetic.integer/newlisp.txt +26 -0
- data/files.zettacode2/arithmetic.integer/nial.txt +23 -0
- data/files.zettacode2/arithmetic.integer/nim.txt +25 -0
- data/files.zettacode2/arithmetic.integer/nsis.txt +25 -0
- data/files.zettacode2/arithmetic.integer/oberon-2.txt +14 -0
- data/files.zettacode2/arithmetic.integer/objeck.txt +17 -0
- data/files.zettacode2/arithmetic.integer/ocaml.txt +9 -0
- data/files.zettacode2/arithmetic.integer/oforth.txt +9 -0
- data/files.zettacode2/arithmetic.integer/ol.txt +23 -0
- data/files.zettacode2/arithmetic.integer/onyx.txt +44 -0
- data/files.zettacode2/arithmetic.integer/openscad.txt +6 -0
- data/files.zettacode2/arithmetic.integer/oz.txt +19 -0
- data/files.zettacode2/arithmetic.integer/panda.txt +2 -0
- data/files.zettacode2/arithmetic.integer/pari-gp.txt +9 -0
- data/files.zettacode2/arithmetic.integer/pascal.txt +14 -0
- data/files.zettacode2/arithmetic.integer/perl.txt +12 -0
- data/files.zettacode2/arithmetic.integer/phix.txt +49 -0
- data/files.zettacode2/arithmetic.integer/phixmonti.txt +14 -0
- data/files.zettacode2/arithmetic.integer/phl.txt +20 -0
- data/files.zettacode2/arithmetic.integer/php.txt +13 -0
- data/files.zettacode2/arithmetic.integer/picat.txt +8 -0
- data/files.zettacode2/arithmetic.integer/picolisp.txt +8 -0
- data/files.zettacode2/arithmetic.integer/piet.txt +38 -0
- data/files.zettacode2/arithmetic.integer/pl-i.txt +8 -0
- data/files.zettacode2/arithmetic.integer/plain_english.txt +26 -0
- data/files.zettacode2/arithmetic.integer/pop11.txt +12 -0
- data/files.zettacode2/arithmetic.integer/postscript.txt +10 -0
- data/files.zettacode2/arithmetic.integer/powershell.txt +15 -0
- data/files.zettacode2/arithmetic.integer/processing.txt +7 -0
- data/files.zettacode2/arithmetic.integer/prodos.txt +35 -0
- data/files.zettacode2/arithmetic.integer/prolog.txt +33 -0
- data/files.zettacode2/arithmetic.integer/purebasic.txt +17 -0
- data/files.zettacode2/arithmetic.integer/python.txt +47 -0
- data/files.zettacode2/arithmetic.integer/qb64.txt +21 -0
- data/files.zettacode2/arithmetic.integer/quackery.txt +12 -0
- data/files.zettacode2/arithmetic.integer/r.txt +11 -0
- data/files.zettacode2/arithmetic.integer/racket.txt +8 -0
- data/files.zettacode2/arithmetic.integer/raku.txt +12 -0
- data/files.zettacode2/arithmetic.integer/raven.txt +9 -0
- data/files.zettacode2/arithmetic.integer/rebol.txt +51 -0
- data/files.zettacode2/arithmetic.integer/relation.txt +11 -0
- data/files.zettacode2/arithmetic.integer/rescript.txt +15 -0
- data/files.zettacode2/arithmetic.integer/retro.txt +10 -0
- data/files.zettacode2/arithmetic.integer/rexx.txt +47 -0
- data/files.zettacode2/arithmetic.integer/ring.txt +11 -0
- data/files.zettacode2/arithmetic.integer/robotic.txt +13 -0
- data/files.zettacode2/arithmetic.integer/ruby.txt +12 -0
- data/files.zettacode2/arithmetic.integer/run_basic.txt +9 -0
- data/files.zettacode2/arithmetic.integer/rust.txt +15 -0
- data/files.zettacode2/arithmetic.integer/sass-scss.txt +36 -0
- data/files.zettacode2/arithmetic.integer/scala.txt +9 -0
- data/files.zettacode2/arithmetic.integer/scheme.txt +27 -0
- data/files.zettacode2/arithmetic.integer/seed7.txt +20 -0
- data/files.zettacode2/arithmetic.integer/sensetalk.txt +12 -0
- data/files.zettacode2/arithmetic.integer/sidef.txt +6 -0
- data/files.zettacode2/arithmetic.integer/slate.txt +9 -0
- data/files.zettacode2/arithmetic.integer/smalltalk.txt +28 -0
- data/files.zettacode2/arithmetic.integer/smart_basic.txt +18 -0
- data/files.zettacode2/arithmetic.integer/snobol4.txt +12 -0
- data/files.zettacode2/arithmetic.integer/snusp.txt +61 -0
- data/files.zettacode2/arithmetic.integer/sql.txt +68 -0
- data/files.zettacode2/arithmetic.integer/ssem.txt +15 -0
- data/files.zettacode2/arithmetic.integer/standard_ml.txt +13 -0
- data/files.zettacode2/arithmetic.integer/swift.txt +11 -0
- data/files.zettacode2/arithmetic.integer/tcl.txt +19 -0
- data/files.zettacode2/arithmetic.integer/terraform.txt +33 -0
- data/files.zettacode2/arithmetic.integer/ti-83_basic.txt +14 -0
- data/files.zettacode2/arithmetic.integer/ti-89_basic.txt +8 -0
- data/files.zettacode2/arithmetic.integer/toka.txt +7 -0
- data/files.zettacode2/arithmetic.integer/tuscript.txt +9 -0
- data/files.zettacode2/arithmetic.integer/unix_shell.txt +29 -0
- data/files.zettacode2/arithmetic.integer/ursa.txt +27 -0
- data/files.zettacode2/arithmetic.integer/v_(vlang).txt +29 -0
- data/files.zettacode2/arithmetic.integer/vba.txt +19 -0
- data/files.zettacode2/arithmetic.integer/vbscript.txt +51 -0
- data/files.zettacode2/arithmetic.integer/vedit_macro_language.txt +8 -0
- data/files.zettacode2/arithmetic.integer/verilog.txt +26 -0
- data/files.zettacode2/arithmetic.integer/vim_script.txt +10 -0
- data/files.zettacode2/arithmetic.integer/visual_basic_.net.txt +14 -0
- data/files.zettacode2/arithmetic.integer/wart.txt +9 -0
- data/files.zettacode2/arithmetic.integer/wren.txt +16 -0
- data/files.zettacode2/arithmetic.integer/x86_assembly.txt +23 -0
- data/files.zettacode2/arithmetic.integer/xlisp.txt +17 -0
- data/files.zettacode2/arithmetic.integer/xpl0.txt +10 -0
- data/files.zettacode2/arithmetic.integer/xslt.txt +10 -0
- data/files.zettacode2/arithmetic.integer/yabasic.txt +11 -0
- data/files.zettacode2/arithmetic.integer/yorick.txt +8 -0
- data/files.zettacode2/arithmetic.integer/zkl.txt +7 -0
- data/files.zettacode2/arithmetic.integer/zonnon.txt +13 -0
- data/files.zettacode2/arithmetic.integer/zx_spectrum_basic.txt +11 -0
- data/files.zettacode2/arithmetic.integer//320/274/320/272-61-52.txt +7 -0
- data/files.zettacode2/hello_world.text/0815.txt +7 -0
- data/files.zettacode2/hello_world.text/11l.txt +1 -0
- data/files.zettacode2/hello_world.text/360_assembly.txt +17 -0
- data/files.zettacode2/hello_world.text/4dos_batch.txt +1 -0
- data/files.zettacode2/hello_world.text/6502_assembly.txt +22 -0
- data/files.zettacode2/hello_world.text/6800_assembly.txt +31 -0
- data/files.zettacode2/hello_world.text/8080_assembly.txt +12 -0
- data/files.zettacode2/hello_world.text/8086_assembly.txt +30 -0
- data/files.zettacode2/hello_world.text/8th.txt +1 -0
- data/files.zettacode2/hello_world.text/aarch64_assembly.txt +22 -0
- data/files.zettacode2/hello_world.text/abap.txt +2 -0
- data/files.zettacode2/hello_world.text/acl2.txt +2 -0
- data/files.zettacode2/hello_world.text/action!.txt +3 -0
- data/files.zettacode2/hello_world.text/actionscript.txt +1 -0
- data/files.zettacode2/hello_world.text/ada.txt +6 -0
- data/files.zettacode2/hello_world.text/agda.txt +14 -0
- data/files.zettacode2/hello_world.text/agena.txt +1 -0
- data/files.zettacode2/hello_world.text/aime.txt +11 -0
- data/files.zettacode2/hello_world.text/algae.txt +1 -0
- data/files.zettacode2/hello_world.text/algol-m.txt +3 -0
- data/files.zettacode2/hello_world.text/algol_60.txt +4 -0
- data/files.zettacode2/hello_world.text/algol_68.txt +3 -0
- data/files.zettacode2/hello_world.text/algol_w.txt +3 -0
- data/files.zettacode2/hello_world.text/alore.txt +1 -0
- data/files.zettacode2/hello_world.text/amazing_hopper.txt +21 -0
- data/files.zettacode2/hello_world.text/ambienttalk.txt +1 -0
- data/files.zettacode2/hello_world.text/amigae.txt +3 -0
- data/files.zettacode2/hello_world.text/angelscript.txt +1 -0
- data/files.zettacode2/hello_world.text/antlang.txt +3 -0
- data/files.zettacode2/hello_world.text/anyways.txt +4 -0
- data/files.zettacode2/hello_world.text/apl.txt +1 -0
- data/files.zettacode2/hello_world.text/applescript.txt +5 -0
- data/files.zettacode2/hello_world.text/applesoft_basic.txt +5 -0
- data/files.zettacode2/hello_world.text/apricot.txt +1 -0
- data/files.zettacode2/hello_world.text/arc.txt +1 -0
- data/files.zettacode2/hello_world.text/arendelle.txt +1 -0
- data/files.zettacode2/hello_world.text/argile.txt +3 -0
- data/files.zettacode2/hello_world.text/arm_assembly.txt +13 -0
- data/files.zettacode2/hello_world.text/arnoldc.txt +3 -0
- data/files.zettacode2/hello_world.text/arturo.txt +1 -0
- data/files.zettacode2/hello_world.text/asciidots.txt +4 -0
- data/files.zettacode2/hello_world.text/astro.txt +1 -0
- data/files.zettacode2/hello_world.text/asymptote.txt +2 -0
- data/files.zettacode2/hello_world.text/ats.txt +1 -0
- data/files.zettacode2/hello_world.text/autohotkey.txt +9 -0
- data/files.zettacode2/hello_world.text/autoit.txt +1 -0
- data/files.zettacode2/hello_world.text/autolisp.txt +1 -0
- data/files.zettacode2/hello_world.text/avail.txt +1 -0
- data/files.zettacode2/hello_world.text/awk.txt +30 -0
- data/files.zettacode2/hello_world.text/axe.txt +2 -0
- data/files.zettacode2/hello_world.text/b.txt +6 -0
- data/files.zettacode2/hello_world.text/b4x.txt +1 -0
- data/files.zettacode2/hello_world.text/babel.txt +2 -0
- data/files.zettacode2/hello_world.text/bash.txt +1 -0
- data/files.zettacode2/hello_world.text/basic.txt +14 -0
- data/files.zettacode2/hello_world.text/basic256.txt +1 -0
- data/files.zettacode2/hello_world.text/batch_file.txt +6 -0
- data/files.zettacode2/hello_world.text/battlestar.txt +4 -0
- data/files.zettacode2/hello_world.text/bbc_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/bc.txt +2 -0
- data/files.zettacode2/hello_world.text/bcpl.txt +6 -0
- data/files.zettacode2/hello_world.text/beef.txt +11 -0
- data/files.zettacode2/hello_world.text/beeswax.txt +23 -0
- data/files.zettacode2/hello_world.text/befunge.txt +1 -0
- data/files.zettacode2/hello_world.text/binary_lambda_calculus.txt +2 -0
- data/files.zettacode2/hello_world.text/bird.txt +6 -0
- data/files.zettacode2/hello_world.text/blade.txt +6 -0
- data/files.zettacode2/hello_world.text/blast.txt +10 -0
- data/files.zettacode2/hello_world.text/blue.txt +18 -0
- data/files.zettacode2/hello_world.text/blz.txt +1 -0
- data/files.zettacode2/hello_world.text/bml.txt +1 -0
- data/files.zettacode2/hello_world.text/boo.txt +1 -0
- data/files.zettacode2/hello_world.text/bootbasic.txt +1 -0
- data/files.zettacode2/hello_world.text/bqn.txt +4 -0
- data/files.zettacode2/hello_world.text/brace.txt +4 -0
- data/files.zettacode2/hello_world.text/bracmat.txt +1 -0
- data/files.zettacode2/hello_world.text/brainf***.txt +83 -0
- data/files.zettacode2/hello_world.text/brat.txt +1 -0
- data/files.zettacode2/hello_world.text/brlcad.txt +6 -0
- data/files.zettacode2/hello_world.text/burlesque.txt +6 -0
- data/files.zettacode2/hello_world.text/c++-cli.txt +5 -0
- data/files.zettacode2/hello_world.text/c++.txt +5 -0
- data/files.zettacode2/hello_world.text/c.txt +37 -0
- data/files.zettacode2/hello_world.text/c1r.txt +1 -0
- data/files.zettacode2/hello_world.text/c2.txt +7 -0
- data/files.zettacode2/hello_world.text/c3.txt +7 -0
- data/files.zettacode2/hello_world.text/c_sharp|c#.txt +19 -0
- data/files.zettacode2/hello_world.text/casio_basic.txt +3 -0
- data/files.zettacode2/hello_world.text/cat.txt +1 -0
- data/files.zettacode2/hello_world.text/cduce.txt +1 -0
- data/files.zettacode2/hello_world.text/cfengine.txt +11 -0
- data/files.zettacode2/hello_world.text/chapel.txt +1 -0
- data/files.zettacode2/hello_world.text/chef.txt +36 -0
- data/files.zettacode2/hello_world.text/chuck.txt +1 -0
- data/files.zettacode2/hello_world.text/cind.txt +6 -0
- data/files.zettacode2/hello_world.text/clay.txt +3 -0
- data/files.zettacode2/hello_world.text/clean.txt +1 -0
- data/files.zettacode2/hello_world.text/clio.txt +1 -0
- data/files.zettacode2/hello_world.text/clipper.txt +1 -0
- data/files.zettacode2/hello_world.text/clips.txt +1 -0
- data/files.zettacode2/hello_world.text/clojure.txt +1 -0
- data/files.zettacode2/hello_world.text/clu.txt +4 -0
- data/files.zettacode2/hello_world.text/cmake.txt +5 -0
- data/files.zettacode2/hello_world.text/cobol.txt +22 -0
- data/files.zettacode2/hello_world.text/cobra.txt +3 -0
- data/files.zettacode2/hello_world.text/coffeescript.txt +4 -0
- data/files.zettacode2/hello_world.text/coldfusion.txt +1 -0
- data/files.zettacode2/hello_world.text/comal.txt +1 -0
- data/files.zettacode2/hello_world.text/comefrom0x10.txt +3 -0
- data/files.zettacode2/hello_world.text/commodore_basic.txt +5 -0
- data/files.zettacode2/hello_world.text/common_lisp.txt +18 -0
- data/files.zettacode2/hello_world.text/component_pascal.txt +10 -0
- data/files.zettacode2/hello_world.text/coq.txt +5 -0
- data/files.zettacode2/hello_world.text/corescript.txt +1 -0
- data/files.zettacode2/hello_world.text/cowgol.txt +4 -0
- data/files.zettacode2/hello_world.text/crack.txt +4 -0
- data/files.zettacode2/hello_world.text/creative_basic.txt +15 -0
- data/files.zettacode2/hello_world.text/crystal.txt +1 -0
- data/files.zettacode2/hello_world.text/d.txt +6 -0
- data/files.zettacode2/hello_world.text/dafny.txt +6 -0
- data/files.zettacode2/hello_world.text/dao.txt +1 -0
- data/files.zettacode2/hello_world.text/dart.txt +4 -0
- data/files.zettacode2/hello_world.text/dataweave.txt +1 -0
- data/files.zettacode2/hello_world.text/dbl.txt +15 -0
- data/files.zettacode2/hello_world.text/dc.txt +3 -0
- data/files.zettacode2/hello_world.text/dcl.txt +1 -0
- data/files.zettacode2/hello_world.text/ddnc.txt +40 -0
- data/files.zettacode2/hello_world.text/delphi.txt +7 -0
- data/files.zettacode2/hello_world.text/deviousyarn.txt +1 -0
- data/files.zettacode2/hello_world.text/dibol-11.txt +14 -0
- data/files.zettacode2/hello_world.text/diego.txt +12 -0
- data/files.zettacode2/hello_world.text/div_games_studio.txt +12 -0
- data/files.zettacode2/hello_world.text/dm.txt +5 -0
- data/files.zettacode2/hello_world.text/draco.txt +3 -0
- data/files.zettacode2/hello_world.text/dragon.txt +3 -0
- data/files.zettacode2/hello_world.text/dwscript.txt +3 -0
- data/files.zettacode2/hello_world.text/dyalect.txt +1 -0
- data/files.zettacode2/hello_world.text/dylan.net.txt +28 -0
- data/files.zettacode2/hello_world.text/dylan.txt +5 -0
- data/files.zettacode2/hello_world.text/d/303/251j/303/240_vu.txt +1 -0
- data/files.zettacode2/hello_world.text/e.txt +3 -0
- data/files.zettacode2/hello_world.text/easylang.txt +2 -0
- data/files.zettacode2/hello_world.text/ec.txt +7 -0
- data/files.zettacode2/hello_world.text/echolisp.txt +3 -0
- data/files.zettacode2/hello_world.text/ecl.txt +3 -0
- data/files.zettacode2/hello_world.text/ecstasy.txt +8 -0
- data/files.zettacode2/hello_world.text/edsac_order_code.txt +34 -0
- data/files.zettacode2/hello_world.text/efene.txt +10 -0
- data/files.zettacode2/hello_world.text/egel.txt +3 -0
- data/files.zettacode2/hello_world.text/egison.txt +6 -0
- data/files.zettacode2/hello_world.text/egl.txt +9 -0
- data/files.zettacode2/hello_world.text/eiffel.txt +11 -0
- data/files.zettacode2/hello_world.text/ela.txt +2 -0
- data/files.zettacode2/hello_world.text/elan.txt +1 -0
- data/files.zettacode2/hello_world.text/elastic.txt +20 -0
- data/files.zettacode2/hello_world.text/elena.txt +5 -0
- data/files.zettacode2/hello_world.text/elisa.txt +1 -0
- data/files.zettacode2/hello_world.text/elixir.txt +3 -0
- data/files.zettacode2/hello_world.text/elm.txt +1 -0
- data/files.zettacode2/hello_world.text/emacs_lisp.txt +6 -0
- data/files.zettacode2/hello_world.text/emojicode.txt +3 -0
- data/files.zettacode2/hello_world.text/erlang.txt +1 -0
- data/files.zettacode2/hello_world.text/erre.txt +7 -0
- data/files.zettacode2/hello_world.text/euler_math_toolbox.txt +4 -0
- data/files.zettacode2/hello_world.text/extended_brainf***.txt +2 -0
- data/files.zettacode2/hello_world.text/ezhil.txt +5 -0
- data/files.zettacode2/hello_world.text/f_sharp|f#.txt +3 -0
- data/files.zettacode2/hello_world.text/factor.txt +1 -0
- data/files.zettacode2/hello_world.text/falcon.txt +4 -0
- data/files.zettacode2/hello_world.text/false.txt +2 -0
- data/files.zettacode2/hello_world.text/fantom.txt +10 -0
- data/files.zettacode2/hello_world.text/fennel.txt +1 -0
- data/files.zettacode2/hello_world.text/ferite.txt +3 -0
- data/files.zettacode2/hello_world.text/fermat.txt +1 -0
- data/files.zettacode2/hello_world.text/fexl.txt +1 -0
- data/files.zettacode2/hello_world.text/fhidwfe.txt +1 -0
- data/files.zettacode2/hello_world.text/fish.txt +9 -0
- data/files.zettacode2/hello_world.text/focal.txt +1 -0
- data/files.zettacode2/hello_world.text/forth.txt +5 -0
- data/files.zettacode2/hello_world.text/fortran.txt +16 -0
- data/files.zettacode2/hello_world.text/fortress.txt +3 -0
- data/files.zettacode2/hello_world.text/free_pascal.txt +21 -0
- data/files.zettacode2/hello_world.text/freebasic.txt +3 -0
- data/files.zettacode2/hello_world.text/frege.txt +5 -0
- data/files.zettacode2/hello_world.text/friendly_interactive_shell.txt +2 -0
- data/files.zettacode2/hello_world.text/frink.txt +3 -0
- data/files.zettacode2/hello_world.text/funl.txt +2 -0
- data/files.zettacode2/hello_world.text/furor.txt +1 -0
- data/files.zettacode2/hello_world.text/futurebasic.txt +4 -0
- data/files.zettacode2/hello_world.text/fuze_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/gambas.txt +6 -0
- data/files.zettacode2/hello_world.text/gap.txt +10 -0
- data/files.zettacode2/hello_world.text/gb_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/gecho.txt +1 -0
- data/files.zettacode2/hello_world.text/gema.txt +5 -0
- data/files.zettacode2/hello_world.text/genie.txt +4 -0
- data/files.zettacode2/hello_world.text/gentee.txt +4 -0
- data/files.zettacode2/hello_world.text/gfa_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/glbasic.txt +1 -0
- data/files.zettacode2/hello_world.text/glee.txt +13 -0
- data/files.zettacode2/hello_world.text/global_script.txt +3 -0
- data/files.zettacode2/hello_world.text/glovepie.txt +1 -0
- data/files.zettacode2/hello_world.text/gml.txt +2 -0
- data/files.zettacode2/hello_world.text/go.txt +6 -0
- data/files.zettacode2/hello_world.text/golfscript.txt +1 -0
- data/files.zettacode2/hello_world.text/gosu.txt +1 -0
- data/files.zettacode2/hello_world.text/grain.txt +1 -0
- data/files.zettacode2/hello_world.text/groovy.txt +1 -0
- data/files.zettacode2/hello_world.text/gw-basic.txt +1 -0
- data/files.zettacode2/hello_world.text/hack.txt +1 -0
- data/files.zettacode2/hello_world.text/halon.txt +3 -0
- data/files.zettacode2/hello_world.text/harbour.txt +1 -0
- data/files.zettacode2/hello_world.text/hare.txt +5 -0
- data/files.zettacode2/hello_world.text/haskell.txt +3 -0
- data/files.zettacode2/hello_world.text/haxe.txt +1 -0
- data/files.zettacode2/hello_world.text/hexiscript.txt +1 -0
- data/files.zettacode2/hello_world.text/hicest.txt +1 -0
- data/files.zettacode2/hello_world.text/hla.txt +7 -0
- data/files.zettacode2/hello_world.text/holyc.txt +1 -0
- data/files.zettacode2/hello_world.text/hoon.txt +1 -0
- data/files.zettacode2/hello_world.text/hpppl.txt +1 -0
- data/files.zettacode2/hello_world.text/hq9+.txt +7 -0
- data/files.zettacode2/hello_world.text/html5.txt +8 -0
- data/files.zettacode2/hello_world.text/huginn.txt +8 -0
- data/files.zettacode2/hello_world.text/hy.txt +1 -0
- data/files.zettacode2/hello_world.text/i.txt +3 -0
- data/files.zettacode2/hello_world.text/icon}}_and_{{header|unicon.txt +3 -0
- data/files.zettacode2/hello_world.text/idl.txt +1 -0
- data/files.zettacode2/hello_world.text/idris.txt +4 -0
- data/files.zettacode2/hello_world.text/inform_6.txt +3 -0
- data/files.zettacode2/hello_world.text/inko.txt +4 -0
- data/files.zettacode2/hello_world.text/integer_basic.txt +4 -0
- data/files.zettacode2/hello_world.text/intercal.txt +17 -0
- data/files.zettacode2/hello_world.text/io.txt +1 -0
- data/files.zettacode2/hello_world.text/ioke.txt +1 -0
- data/files.zettacode2/hello_world.text/is-basic.txt +1 -0
- data/files.zettacode2/hello_world.text/isabelle.txt +5 -0
- data/files.zettacode2/hello_world.text/iwbasic.txt +15 -0
- data/files.zettacode2/hello_world.text/j.txt +40 -0
- data/files.zettacode2/hello_world.text/jack.txt +7 -0
- data/files.zettacode2/hello_world.text/jacquard_loom.txt +88 -0
- data/files.zettacode2/hello_world.text/java.txt +7 -0
- data/files.zettacode2/hello_world.text/javascript.txt +12 -0
- data/files.zettacode2/hello_world.text/jcl.txt +1 -0
- data/files.zettacode2/hello_world.text/jinja.txt +9 -0
- data/files.zettacode2/hello_world.text/joy.txt +1 -0
- data/files.zettacode2/hello_world.text/jq.txt +1 -0
- data/files.zettacode2/hello_world.text/jse.txt +1 -0
- data/files.zettacode2/hello_world.text/jsish.txt +1 -0
- data/files.zettacode2/hello_world.text/julia.txt +1 -0
- data/files.zettacode2/hello_world.text/k.txt +14 -0
- data/files.zettacode2/hello_world.text/kabap.txt +1 -0
- data/files.zettacode2/hello_world.text/kaya.txt +6 -0
- data/files.zettacode2/hello_world.text/kdf9_usercode.txt +13 -0
- data/files.zettacode2/hello_world.text/keg.txt +1 -0
- data/files.zettacode2/hello_world.text/kite.txt +4 -0
- data/files.zettacode2/hello_world.text/kitten.txt +2 -0
- data/files.zettacode2/hello_world.text/koka.txt +3 -0
- data/files.zettacode2/hello_world.text/konsolscript.txt +4 -0
- data/files.zettacode2/hello_world.text/kotlin.txt +3 -0
- data/files.zettacode2/hello_world.text/kql.txt +2 -0
- data/files.zettacode2/hello_world.text/ksi.txt +5 -0
- data/files.zettacode2/hello_world.text/lambdatalk.txt +5 -0
- data/files.zettacode2/hello_world.text/lang5.txt +1 -0
- data/files.zettacode2/hello_world.text/langur.txt +1 -0
- data/files.zettacode2/hello_world.text/lasso.txt +2 -0
- data/files.zettacode2/hello_world.text/latex.txt +4 -0
- data/files.zettacode2/hello_world.text/latitude.txt +1 -0
- data/files.zettacode2/hello_world.text/lc3_assembly.txt +18 -0
- data/files.zettacode2/hello_world.text/ldpl.txt +4 -0
- data/files.zettacode2/hello_world.text/lean.txt +3 -0
- data/files.zettacode2/hello_world.text/lfe.txt +3 -0
- data/files.zettacode2/hello_world.text/liberty_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/lil.txt +5 -0
- data/files.zettacode2/hello_world.text/lily.txt +7 -0
- data/files.zettacode2/hello_world.text/lilypond.txt +11 -0
- data/files.zettacode2/hello_world.text/limbo.txt +14 -0
- data/files.zettacode2/hello_world.text/lingo.txt +5 -0
- data/files.zettacode2/hello_world.text/lisaac.txt +16 -0
- data/files.zettacode2/hello_world.text/little.txt +9 -0
- data/files.zettacode2/hello_world.text/livecode.txt +15 -0
- data/files.zettacode2/hello_world.text/llvm.txt +13 -0
- data/files.zettacode2/hello_world.text/lobster.txt +1 -0
- data/files.zettacode2/hello_world.text/logo.txt +4 -0
- data/files.zettacode2/hello_world.text/logtalk.txt +7 -0
- data/files.zettacode2/hello_world.text/lolcode.txt +6 -0
- data/files.zettacode2/hello_world.text/lotusscript.txt +5 -0
- data/files.zettacode2/hello_world.text/lse.txt +1 -0
- data/files.zettacode2/hello_world.text/lse64.txt +1 -0
- data/files.zettacode2/hello_world.text/lua.txt +12 -0
- data/files.zettacode2/hello_world.text/luna.txt +3 -0
- data/files.zettacode2/hello_world.text/m2000_interpreter.txt +5 -0
- data/files.zettacode2/hello_world.text/m4.txt +2 -0
- data/files.zettacode2/hello_world.text/maclisp.txt +3 -0
- data/files.zettacode2/hello_world.text/macro-10.txt +24 -0
- data/files.zettacode2/hello_world.text/macro-11.txt +28 -0
- data/files.zettacode2/hello_world.text/mad.txt +4 -0
- data/files.zettacode2/hello_world.text/make.txt +9 -0
- data/files.zettacode2/hello_world.text/malbolge.txt +7 -0
- data/files.zettacode2/hello_world.text/manool.txt +10 -0
- data/files.zettacode2/hello_world.text/maple.txt +4 -0
- data/files.zettacode2/hello_world.text/mathcad.txt +3 -0
- data/files.zettacode2/hello_world.text/mathematica}}_-_{{header|wolfram_language.txt +1 -0
- data/files.zettacode2/hello_world.text/matlab.txt +2 -0
- data/files.zettacode2/hello_world.text/maude.txt +13 -0
- data/files.zettacode2/hello_world.text/maxima.txt +1 -0
- data/files.zettacode2/hello_world.text/maxscript.txt +3 -0
- data/files.zettacode2/hello_world.text/mdl.txt +2 -0
- data/files.zettacode2/hello_world.text/mel.txt +3 -0
- data/files.zettacode2/hello_world.text/melonbasic.txt +3 -0
- data/files.zettacode2/hello_world.text/mercury.txt +8 -0
- data/files.zettacode2/hello_world.text/metafont.txt +1 -0
- data/files.zettacode2/hello_world.text/min.txt +1 -0
- data/files.zettacode2/hello_world.text/miniscript.txt +1 -0
- data/files.zettacode2/hello_world.text/minizinc.txt +2 -0
- data/files.zettacode2/hello_world.text/mips_assembly.txt +12 -0
- data/files.zettacode2/hello_world.text/mirc_scripting_language.txt +1 -0
- data/files.zettacode2/hello_world.text/ml-i.txt +1 -0
- data/files.zettacode2/hello_world.text/modula-2.txt +24 -0
- data/files.zettacode2/hello_world.text/modula-3.txt +7 -0
- data/files.zettacode2/hello_world.text/montilang.txt +1 -0
- data/files.zettacode2/hello_world.text/morfa.txt +7 -0
- data/files.zettacode2/hello_world.text/mosaic.txt +3 -0
- data/files.zettacode2/hello_world.text/muf.txt +4 -0
- data/files.zettacode2/hello_world.text/mumps.txt +1 -0
- data/files.zettacode2/hello_world.text/mydef.txt +27 -0
- data/files.zettacode2/hello_world.text/myrtlescript.txt +6 -0
- data/files.zettacode2/hello_world.text/mysql.txt +2 -0
- data/files.zettacode2/hello_world.text/mythryl.txt +2 -0
- data/files.zettacode2/hello_world.text/n-t-roff.txt +6 -0
- data/files.zettacode2/hello_world.text/nanoquery.txt +1 -0
- data/files.zettacode2/hello_world.text/neat.txt +2 -0
- data/files.zettacode2/hello_world.text/neko.txt +1 -0
- data/files.zettacode2/hello_world.text/nemerle.txt +13 -0
- data/files.zettacode2/hello_world.text/netrexx.txt +1 -0
- data/files.zettacode2/hello_world.text/never.txt +4 -0
- data/files.zettacode2/hello_world.text/newlisp.txt +2 -0
- data/files.zettacode2/hello_world.text/nickle.txt +1 -0
- data/files.zettacode2/hello_world.text/nim.txt +3 -0
- data/files.zettacode2/hello_world.text/nit.txt +1 -0
- data/files.zettacode2/hello_world.text/nix.txt +1 -0
- data/files.zettacode2/hello_world.text/nlp++.txt +5 -0
- data/files.zettacode2/hello_world.text/ns-hubasic.txt +6 -0
- data/files.zettacode2/hello_world.text/nyquist.txt +15 -0
- data/files.zettacode2/hello_world.text/oberon-2.txt +11 -0
- data/files.zettacode2/hello_world.text/objeck.txt +6 -0
- data/files.zettacode2/hello_world.text/objective-c.txt +42 -0
- data/files.zettacode2/hello_world.text/ocaml.txt +1 -0
- data/files.zettacode2/hello_world.text/occam.txt +5 -0
- data/files.zettacode2/hello_world.text/octave.txt +5 -0
- data/files.zettacode2/hello_world.text/odin.txt +6 -0
- data/files.zettacode2/hello_world.text/oforth.txt +1 -0
- data/files.zettacode2/hello_world.text/ol.txt +1 -0
- data/files.zettacode2/hello_world.text/onyx.txt +1 -0
- data/files.zettacode2/hello_world.text/ooc.txt +8 -0
- data/files.zettacode2/hello_world.text/oorexx.txt +4 -0
- data/files.zettacode2/hello_world.text/openlisp.txt +10 -0
- data/files.zettacode2/hello_world.text/openscad.txt +5 -0
- data/files.zettacode2/hello_world.text/oxygene.txt +25 -0
- data/files.zettacode2/hello_world.text/oz.txt +1 -0
- data/files.zettacode2/hello_world.text/pari-gp.txt +2 -0
- data/files.zettacode2/hello_world.text/pascal.txt +5 -0
- data/files.zettacode2/hello_world.text/pasm.txt +2 -0
- data/files.zettacode2/hello_world.text/pdp-11_assembly.txt +15 -0
- data/files.zettacode2/hello_world.text/pdp-1_assembly.txt +22 -0
- data/files.zettacode2/hello_world.text/pepsiscript.txt +16 -0
- data/files.zettacode2/hello_world.text/perl.txt +11 -0
- data/files.zettacode2/hello_world.text/peylang.txt +1 -0
- data/files.zettacode2/hello_world.text/pharo.txt +4 -0
- data/files.zettacode2/hello_world.text/phix.txt +4 -0
- data/files.zettacode2/hello_world.text/phl.txt +7 -0
- data/files.zettacode2/hello_world.text/php.txt +5 -0
- data/files.zettacode2/hello_world.text/picat.txt +1 -0
- data/files.zettacode2/hello_world.text/picolisp.txt +1 -0
- data/files.zettacode2/hello_world.text/pict.txt +6 -0
- data/files.zettacode2/hello_world.text/pikachu.txt +23 -0
- data/files.zettacode2/hello_world.text/pike.txt +3 -0
- data/files.zettacode2/hello_world.text/pilot.txt +1 -0
- data/files.zettacode2/hello_world.text/pir.txt +3 -0
- data/files.zettacode2/hello_world.text/pixilang.txt +1 -0
- data/files.zettacode2/hello_world.text/pl-i.txt +3 -0
- data/files.zettacode2/hello_world.text/pl-m.txt +13 -0
- data/files.zettacode2/hello_world.text/pl-sql.txt +21 -0
- data/files.zettacode2/hello_world.text/plain_english.txt +7 -0
- data/files.zettacode2/hello_world.text/plan.txt +14 -0
- data/files.zettacode2/hello_world.text/pony.txt +3 -0
- data/files.zettacode2/hello_world.text/pop11.txt +1 -0
- data/files.zettacode2/hello_world.text/portugol.txt +11 -0
- data/files.zettacode2/hello_world.text/postscript.txt +31 -0
- data/files.zettacode2/hello_world.text/potion.txt +1 -0
- data/files.zettacode2/hello_world.text/powerbasic.txt +7 -0
- data/files.zettacode2/hello_world.text/powershell.txt +4 -0
- data/files.zettacode2/hello_world.text/processing.txt +1 -0
- data/files.zettacode2/hello_world.text/prodos.txt +1 -0
- data/files.zettacode2/hello_world.text/programming_language.txt +5 -0
- data/files.zettacode2/hello_world.text/prolog.txt +1 -0
- data/files.zettacode2/hello_world.text/promal.txt +7 -0
- data/files.zettacode2/hello_world.text/psql.txt +7 -0
- data/files.zettacode2/hello_world.text/pure.txt +5 -0
- data/files.zettacode2/hello_world.text/purebasic.txt +5 -0
- data/files.zettacode2/hello_world.text/python.txt +19 -0
- data/files.zettacode2/hello_world.text/qb64.txt +1 -0
- data/files.zettacode2/hello_world.text/quackery.txt +1 -0
- data/files.zettacode2/hello_world.text/quill.txt +1 -0
- data/files.zettacode2/hello_world.text/quite_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/r.txt +5 -0
- data/files.zettacode2/hello_world.text/ra.txt +8 -0
- data/files.zettacode2/hello_world.text/racket.txt +3 -0
- data/files.zettacode2/hello_world.text/raku.txt +4 -0
- data/files.zettacode2/hello_world.text/rasel.txt +1 -0
- data/files.zettacode2/hello_world.text/ratfor.txt +11 -0
- data/files.zettacode2/hello_world.text/raven.txt +1 -0
- data/files.zettacode2/hello_world.text/realbasic.txt +7 -0
- data/files.zettacode2/hello_world.text/rebol.txt +1 -0
- data/files.zettacode2/hello_world.text/red.txt +1 -0
- data/files.zettacode2/hello_world.text/relation.txt +4 -0
- data/files.zettacode2/hello_world.text/rescript.txt +2 -0
- data/files.zettacode2/hello_world.text/retro.txt +4 -0
- data/files.zettacode2/hello_world.text/rexx.txt +13 -0
- data/files.zettacode2/hello_world.text/ring.txt +1 -0
- data/files.zettacode2/hello_world.text/risc-v.txt +11 -0
- data/files.zettacode2/hello_world.text/rockstar.txt +1 -0
- data/files.zettacode2/hello_world.text/rtl-2.txt +12 -0
- data/files.zettacode2/hello_world.text/ruby.txt +11 -0
- data/files.zettacode2/hello_world.text/run_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/rust.txt +13 -0
- data/files.zettacode2/hello_world.text/salmon.txt +9 -0
- data/files.zettacode2/hello_world.text/sas.txt +4 -0
- data/files.zettacode2/hello_world.text/sasl.txt +4 -0
- data/files.zettacode2/hello_world.text/sather.txt +5 -0
- data/files.zettacode2/hello_world.text/scala.txt +19 -0
- data/files.zettacode2/hello_world.text/scheme.txt +21 -0
- data/files.zettacode2/hello_world.text/scilab.txt +1 -0
- data/files.zettacode2/hello_world.text/scratchscript.txt +4 -0
- data/files.zettacode2/hello_world.text/sed.txt +3 -0
- data/files.zettacode2/hello_world.text/seed7.txt +6 -0
- data/files.zettacode2/hello_world.text/self.txt +1 -0
- data/files.zettacode2/hello_world.text/sensetalk.txt +1 -0
- data/files.zettacode2/hello_world.text/set_lang.txt +12 -0
- data/files.zettacode2/hello_world.text/setl.txt +1 -0
- data/files.zettacode2/hello_world.text/setl4.txt +1 -0
- data/files.zettacode2/hello_world.text/shen.txt +1 -0
- data/files.zettacode2/hello_world.text/shiny.txt +1 -0
- data/files.zettacode2/hello_world.text/sidef.txt +1 -0
- data/files.zettacode2/hello_world.text/simplecode.txt +3 -0
- data/files.zettacode2/hello_world.text/simpol.txt +2 -0
- data/files.zettacode2/hello_world.text/simula.txt +5 -0
- data/files.zettacode2/hello_world.text/sing.txt +7 -0
- data/files.zettacode2/hello_world.text/sisal.txt +10 -0
- data/files.zettacode2/hello_world.text/skookumscript.txt +3 -0
- data/files.zettacode2/hello_world.text/slate.txt +1 -0
- data/files.zettacode2/hello_world.text/slope.txt +1 -0
- data/files.zettacode2/hello_world.text/smalltalk.txt +4 -0
- data/files.zettacode2/hello_world.text/smart_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/smilebasic.txt +1 -0
- data/files.zettacode2/hello_world.text/snobol4.txt +3 -0
- data/files.zettacode2/hello_world.text/snusp.txt +11 -0
- data/files.zettacode2/hello_world.text/soneking_assembly.txt +10 -0
- data/files.zettacode2/hello_world.text/sparc_assembly.txt +18 -0
- data/files.zettacode2/hello_world.text/sparkling.txt +1 -0
- data/files.zettacode2/hello_world.text/spl.txt +1 -0
- data/files.zettacode2/hello_world.text/sql.txt +12 -0
- data/files.zettacode2/hello_world.text/sql_pl.txt +35 -0
- data/files.zettacode2/hello_world.text/standard_ml.txt +1 -0
- data/files.zettacode2/hello_world.text/stata.txt +1 -0
- data/files.zettacode2/hello_world.text/suneido.txt +1 -0
- data/files.zettacode2/hello_world.text/swahili.txt +1 -0
- data/files.zettacode2/hello_world.text/swift.txt +4 -0
- data/files.zettacode2/hello_world.text/symsyn.txt +3 -0
- data/files.zettacode2/hello_world.text/tailspin.txt +1 -0
- data/files.zettacode2/hello_world.text/tcl.txt +5 -0
- data/files.zettacode2/hello_world.text/teco.txt +2 -0
- data/files.zettacode2/hello_world.text/tern.txt +1 -0
- data/files.zettacode2/hello_world.text/terra.txt +6 -0
- data/files.zettacode2/hello_world.text/terraform.txt +3 -0
- data/files.zettacode2/hello_world.text/testml.txt +2 -0
- data/files.zettacode2/hello_world.text/ti-83_basic.txt +2 -0
- data/files.zettacode2/hello_world.text/ti-89_basic.txt +1 -0
- data/files.zettacode2/hello_world.text/tiny_basic.txt +5 -0
- data/files.zettacode2/hello_world.text/tmg.txt +2 -0
- data/files.zettacode2/hello_world.text/torquescript.txt +1 -0
- data/files.zettacode2/hello_world.text/tpp.txt +1 -0
- data/files.zettacode2/hello_world.text/transact-sql.txt +2 -0
- data/files.zettacode2/hello_world.text/transd.txt +2 -0
- data/files.zettacode2/hello_world.text/transforth.txt +1 -0
- data/files.zettacode2/hello_world.text/trith.txt +1 -0
- data/files.zettacode2/hello_world.text/true_basic.txt +5 -0
- data/files.zettacode2/hello_world.text/tuscript.txt +8 -0
- data/files.zettacode2/hello_world.text/ubasic-4th.txt +1 -0
- data/files.zettacode2/hello_world.text/uniface.txt +3 -0
- data/files.zettacode2/hello_world.text/unison.txt +3 -0
- data/files.zettacode2/hello_world.text/unix_shell.txt +9 -0
- data/files.zettacode2/hello_world.text/unlambda.txt +1 -0
- data/files.zettacode2/hello_world.text/ursa.txt +1 -0
- data/files.zettacode2/hello_world.text/ursala.txt +10 -0
- data/files.zettacode2/hello_world.text/v.txt +1 -0
- data/files.zettacode2/hello_world.text/v_(vlang).txt +3 -0
- data/files.zettacode2/hello_world.text/vala.txt +3 -0
- data/files.zettacode2/hello_world.text/vax_assembly.txt +10 -0
- data/files.zettacode2/hello_world.text/vba.txt +6 -0
- data/files.zettacode2/hello_world.text/vbscript.txt +2 -0
- data/files.zettacode2/hello_world.text/vedit_macro_language.txt +1 -0
- data/files.zettacode2/hello_world.text/verbexx.txt +2 -0
- data/files.zettacode2/hello_world.text/verilog.txt +8 -0
- data/files.zettacode2/hello_world.text/vhdl.txt +16 -0
- data/files.zettacode2/hello_world.text/vim_script.txt +1 -0
- data/files.zettacode2/hello_world.text/visual_basic.txt +22 -0
- data/files.zettacode2/hello_world.text/visual_basic_.net.txt +7 -0
- data/files.zettacode2/hello_world.text/viua_vm_assembly.txt +6 -0
- data/files.zettacode2/hello_world.text/vtl-2.txt +1 -0
- data/files.zettacode2/hello_world.text/wart.txt +2 -0
- data/files.zettacode2/hello_world.text/wdte.txt +1 -0
- data/files.zettacode2/hello_world.text/webassembly.txt +38 -0
- data/files.zettacode2/hello_world.text/wee_basic.txt +2 -0
- data/files.zettacode2/hello_world.text/whenever.txt +2 -0
- data/files.zettacode2/hello_world.text/whiley.txt +5 -0
- data/files.zettacode2/hello_world.text/whitespace.txt +1 -0
- data/files.zettacode2/hello_world.text/wisp.txt +8 -0
- data/files.zettacode2/hello_world.text/wolfram_language.txt +1 -0
- data/files.zettacode2/hello_world.text/wren.txt +1 -0
- data/files.zettacode2/hello_world.text/x10.txt +8 -0
- data/files.zettacode2/hello_world.text/x86-64_assembly.txt +44 -0
- data/files.zettacode2/hello_world.text/x86_assembly.txt +37 -0
- data/files.zettacode2/hello_world.text/xbasic.txt +12 -0
- data/files.zettacode2/hello_world.text/xeec.txt +4 -0
- data/files.zettacode2/hello_world.text/xl.txt +2 -0
- data/files.zettacode2/hello_world.text/xlisp.txt +2 -0
- data/files.zettacode2/hello_world.text/xpath.txt +1 -0
- data/files.zettacode2/hello_world.text/xpl0.txt +3 -0
- data/files.zettacode2/hello_world.text/xslt.txt +5 -0
- data/files.zettacode2/hello_world.text/yabasic.txt +3 -0
- data/files.zettacode2/hello_world.text/yorick.txt +1 -0
- data/files.zettacode2/hello_world.text/z80_assembly.txt +21 -0
- data/files.zettacode2/hello_world.text/zig.txt +4 -0
- data/files.zettacode2/hello_world.text/zkl.txt +2 -0
- data/files.zettacode2/hello_world.text/zoea.txt +2 -0
- data/files.zettacode2/hello_world.text/zoea_visual.txt +1 -0
- data/files.zettacode2/hello_world.text/zoomscript.txt +5 -0
- data/files.zettacode2/hello_world.text/zx_spectrum_basic.txt +4 -0
- data/files.zettacode2/hello_world.text//340/256/211/340/256/257/340/256/277/340/256/260/340/257/215-uyir.txt +5 -0
- data/install/docker/.gitignore +2 -0
- data/install/docker/run +7 -0
- data/{vagrant → install/vagrant/debian}/.gitignore +0 -0
- data/{vagrant → install/vagrant/debian}/.ruby-version +0 -0
- data/{vagrant → install/vagrant/debian}/Vagrantfile +1 -1
- data/{vagrant → install/vagrant/debian}/install.sh +0 -0
- data/install/vagrant/opensuse/.gitignore +2 -0
- data/install/vagrant/opensuse/.ruby-version +1 -0
- data/install/vagrant/opensuse/Vagrantfile +29 -0
- data/lib/zettacode/parse/parse.rb +1 -1
- data/lib/zettacode/version.rb +1 -1
- metadata +761 -5
@@ -0,0 +1,44 @@
|
|
1
|
+
IDENTIFICATION DIVISION.
|
2
|
+
PROGRAM-ID. Int-Arithmetic.
|
3
|
+
|
4
|
+
DATA DIVISION.
|
5
|
+
WORKING-STORAGE SECTION.
|
6
|
+
|
7
|
+
01 A PIC S9(10).
|
8
|
+
01 B PIC S9(10).
|
9
|
+
01 Result PIC S9(10).
|
10
|
+
|
11
|
+
PROCEDURE DIVISION.
|
12
|
+
DISPLAY "First number: " WITH NO ADVANCING
|
13
|
+
ACCEPT A
|
14
|
+
DISPLAY "Second number: " WITH NO ADVANCING
|
15
|
+
ACCEPT B
|
16
|
+
|
17
|
+
* *> Note: The various ADD/SUBTRACT/etc. statements can be
|
18
|
+
* *> replaced with COMPUTE statements, which allow those
|
19
|
+
* *> operations to be defined similarly to other languages,
|
20
|
+
* *> e.g. COMPUTE Result = A + B
|
21
|
+
|
22
|
+
ADD A TO B GIVING Result
|
23
|
+
DISPLAY "A + B = " Result
|
24
|
+
|
25
|
+
SUBTRACT B FROM A GIVING Result
|
26
|
+
DISPLAY "A - B = " Result
|
27
|
+
|
28
|
+
MULTIPLY A BY B GIVING Result
|
29
|
+
DISPLAY "A * B = " Result
|
30
|
+
|
31
|
+
* *> Division here truncates towards zero. DIVIDE can take a
|
32
|
+
* *> ROUNDED clause, which will round the result to the nearest
|
33
|
+
* *> integer.
|
34
|
+
DIVIDE A BY B GIVING Result
|
35
|
+
DISPLAY "A / B = " Result
|
36
|
+
|
37
|
+
COMPUTE Result = A ^ B
|
38
|
+
DISPLAY "A ^ B = " Result
|
39
|
+
|
40
|
+
* *> Matches sign of first argument.
|
41
|
+
DISPLAY "A % B = " FUNCTION REM(A, B)
|
42
|
+
|
43
|
+
GOBACK
|
44
|
+
.
|
@@ -0,0 +1,29 @@
|
|
1
|
+
|
2
|
+
(defun arithmetic (&optional (a (read *query-io*)) (b (read *query-io*)))
|
3
|
+
(mapc
|
4
|
+
(lambda (op)
|
5
|
+
(format t "~a => ~a~%" (list op a b) (funcall (symbol-function op) a b)))
|
6
|
+
'(+ - * mod rem floor ceiling truncate round expt))
|
7
|
+
(values))
|
8
|
+
|
9
|
+
Common Lisp's integer division functions are <code>floor</code>, <code>ceiling</code>, <code>truncate</code>, and <code>round</code>. They differ in how they round their quotient.
|
10
|
+
|
11
|
+
{| class="wikitable"
|
12
|
+
! The function !! rounds its quotient towards
|
13
|
+
|-
|
14
|
+
! <code>floor</code>
|
15
|
+
| negative infinity
|
16
|
+
|-
|
17
|
+
! <code>ceiling</code>
|
18
|
+
| positive infinity
|
19
|
+
|-
|
20
|
+
! <code>truncate</code>
|
21
|
+
| zero
|
22
|
+
|-
|
23
|
+
! <code>round</code>
|
24
|
+
| the nearest integer (preferring the even integer if the mathematical quotient is equidistant from two integers)
|
25
|
+
|}
|
26
|
+
|
27
|
+
Each function also returns a remainder as its secondary value, such that
|
28
|
+
quotient * divisor + remainder = dividend .
|
29
|
+
<code>(mod a b)</code> and <code>(rem a b)</code> return numbers equal to the secondary values of <code>(floor a b)</code> and <code>(truncate a b)</code>, respectively.
|
@@ -0,0 +1,32 @@
|
|
1
|
+
Works with Gardens Point Component Pascal
|
2
|
+
|
3
|
+
MODULE Arithmetic;
|
4
|
+
IMPORT CPmain,Console,RTS;
|
5
|
+
|
6
|
+
VAR
|
7
|
+
x,y : INTEGER;
|
8
|
+
arg : ARRAY 128 OF CHAR;
|
9
|
+
status : BOOLEAN;
|
10
|
+
|
11
|
+
|
12
|
+
PROCEDURE Error(IN str : ARRAY OF CHAR);
|
13
|
+
BEGIN
|
14
|
+
Console.WriteString(str);Console.WriteLn;
|
15
|
+
HALT(1)
|
16
|
+
END Error;
|
17
|
+
|
18
|
+
|
19
|
+
BEGIN
|
20
|
+
IF CPmain.ArgNumber() < 2 THEN Error("Give me two integers!") END;
|
21
|
+
CPmain.GetArg(0,arg); RTS.StrToInt(arg,x,status);
|
22
|
+
IF ~status THEN Error("Can't convert '"+arg+"' to Integer") END;
|
23
|
+
CPmain.GetArg(1,arg); RTS.StrToInt(arg,y,status);
|
24
|
+
IF ~status THEN Error("Can't convert '"+arg+"' to Integer") END;
|
25
|
+
Console.WriteString("x + y >");Console.WriteInt(x + y,6);Console.WriteLn;
|
26
|
+
Console.WriteString("x - y >");Console.WriteInt(x - y,6);Console.WriteLn;
|
27
|
+
Console.WriteString("x * y >");Console.WriteInt(x * y,6);Console.WriteLn;
|
28
|
+
Console.WriteString("x / y >");Console.WriteInt(x DIV y,6);Console.WriteLn;
|
29
|
+
Console.WriteString("x MOD y >");Console.WriteInt(x MOD y,6);Console.WriteLn;
|
30
|
+
END Arithmetic.
|
31
|
+
|
32
|
+
command: <i>cprun Arithmetic 12 23</i><br/>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
a = gets.not_nil!.to_i64
|
2
|
+
b = gets.not_nil!.to_i64
|
3
|
+
|
4
|
+
puts "Sum: #{a + b}"
|
5
|
+
puts "Difference: #{a - b}"
|
6
|
+
puts "Product: #{a * b}"
|
7
|
+
puts "Quotient (float division): #{a / b}" # / always returns a float.
|
8
|
+
puts "Quotient (floor division): #{a // b}"
|
9
|
+
puts "Remainder: #{a % b}" # Sign of remainder matches that of the second operand (b).
|
10
|
+
puts "Power: #{a ** b}" # Integers can only be raised to a positive exponent.
|
11
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import std.stdio, std.string, std.conv;
|
2
|
+
|
3
|
+
void main() {
|
4
|
+
int a = 10, b = 20;
|
5
|
+
try {
|
6
|
+
a = readln().strip().to!int();
|
7
|
+
b = readln().strip().to!int();
|
8
|
+
} catch (StdioException e) {}
|
9
|
+
writeln("a = ", a, ", b = ", b);
|
10
|
+
|
11
|
+
writeln("a + b = ", a + b);
|
12
|
+
writeln("a - b = ", a - b);
|
13
|
+
writeln("a * b = ", a * b);
|
14
|
+
writeln("a / b = ", a / b);
|
15
|
+
writeln("a % b = ", a % b);
|
16
|
+
writeln("a ^^ b = ", a ^^ b);
|
17
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
[Enter 2 integers on 1 line.
|
2
|
+
Use whitespace to separate. Example: 2 3
|
3
|
+
Use underscore for negative integers. Example: _10
|
4
|
+
]P ? sb sa
|
5
|
+
[add: ]P la lb + p sz
|
6
|
+
[sub: ]P la lb - p sz
|
7
|
+
[mul: ]P la lb * p sz
|
8
|
+
[div: ]P la lb / p sz [truncates toward zero]sz
|
9
|
+
[mod: ]P la lb % p sz [sign matches first operand]sz
|
10
|
+
[pow: ]P la lb ^ p sz
|
@@ -0,0 +1,8 @@
|
|
1
|
+
$ inquire a "Enter first number"
|
2
|
+
$ a = f$integer( a )
|
3
|
+
$ inquire b "Enter second number"
|
4
|
+
$ b = f$integer( b )
|
5
|
+
$ write sys$output "a + b = ", a + b
|
6
|
+
$ write sys$output "a - b = ", a - b
|
7
|
+
$ write sys$output "a * b = ", a * b
|
8
|
+
$ write sys$output "a / b = ", a / b ! truncates down
|
@@ -0,0 +1,19 @@
|
|
1
|
+
program IntegerArithmetic;
|
2
|
+
|
3
|
+
{$APPTYPE CONSOLE}
|
4
|
+
|
5
|
+
uses SysUtils, Math;
|
6
|
+
|
7
|
+
var
|
8
|
+
a, b: Integer;
|
9
|
+
begin
|
10
|
+
a := StrToInt(ParamStr(1));
|
11
|
+
b := StrToInt(ParamStr(2));
|
12
|
+
|
13
|
+
WriteLn(Format('%d + %d = %d', [a, b, a + b]));
|
14
|
+
WriteLn(Format('%d - %d = %d', [a, b, a - b]));
|
15
|
+
WriteLn(Format('%d * %d = %d', [a, b, a * b]));
|
16
|
+
WriteLn(Format('%d / %d = %d', [a, b, a div b])); // rounds towards 0
|
17
|
+
WriteLn(Format('%d %% %d = %d', [a, b, a mod b])); // matches sign of the first operand
|
18
|
+
WriteLn(Format('%d ^ %d = %d', [a, b, Trunc(Power(a, b))]));
|
19
|
+
end.
|
@@ -0,0 +1,9 @@
|
|
1
|
+
var a := StrToInt(ParamStr(0));
|
2
|
+
var b := StrToInt(ParamStr(1));
|
3
|
+
|
4
|
+
PrintLn(Format('%d + %d = %d', [a, b, a + b]));
|
5
|
+
PrintLn(Format('%d - %d = %d', [a, b, a - b]));
|
6
|
+
PrintLn(Format('%d * %d = %d', [a, b, a * b]));
|
7
|
+
PrintLn(Format('%d / %d = %d', [a, b, a div b]));
|
8
|
+
PrintLn(Format('%d mod %d = %d', [a, b, a mod b]));
|
9
|
+
PrintLn(Format('%d ^ %d = %d', [a, b, Trunc(Power(a, b))]));
|
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
ArithmeticDemo(INTEGER A,INTEGER B) := FUNCTION
|
3
|
+
ADDit := A + B;
|
4
|
+
SUBTRACTit := A - B;
|
5
|
+
MULTIPLYit := A * B;
|
6
|
+
INTDIVIDEit := A DIV B; //INTEGER DIVISION
|
7
|
+
DIVIDEit := A / B; //standard division
|
8
|
+
Remainder := A % B;
|
9
|
+
EXPit := POWER(A,B);
|
10
|
+
DS := DATASET([{A,B,'A PLUS B is:',ADDit},
|
11
|
+
{A,B,'A MINUS B is:',SUBTRACTit},
|
12
|
+
{A,B,'A TIMES B is:',MULTIPLYit},
|
13
|
+
{A,B,'A INT DIVIDE BY B is:',INTDIVIDEit},
|
14
|
+
{A,B,'REMAINDER is:',Remainder},
|
15
|
+
{A,B,'A DIVIDE BY B is:',DIVIDEit},
|
16
|
+
{A,B,'A RAISED TO B:',EXPit}],
|
17
|
+
{INTEGER AVal,INTEGER BVal,STRING18 valuetype,STRING val});
|
18
|
+
|
19
|
+
RETURN DS;
|
20
|
+
END;
|
21
|
+
|
22
|
+
ArithmeticDemo(1,1);
|
23
|
+
ArithmeticDemo(2,2);
|
24
|
+
ArithmeticDemo(50,5);
|
25
|
+
ArithmeticDemo(10,3);
|
26
|
+
ArithmeticDemo(-1,2);
|
27
|
+
|
28
|
+
/* NOTE:Division by zero defaults to generating a zero result (0),
|
29
|
+
rather than reporting a “divide by zero” error.
|
30
|
+
This avoids invalid or unexpected data aborting a long job.
|
31
|
+
This default behavior can be changed
|
32
|
+
*/
|
33
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
|
2
|
+
@public
|
3
|
+
run = fn () {
|
4
|
+
|
5
|
+
First = io.get_line("First number: ")
|
6
|
+
Second = io.get_line("Second number: ")
|
7
|
+
|
8
|
+
A = list_to_integer(lists.delete($\n, First))
|
9
|
+
B = list_to_integer(lists.delete($\n, Second))
|
10
|
+
|
11
|
+
io.format("Sum: ~p~n", [A + B])
|
12
|
+
io.format("Difference: ~p~n", [A - B])
|
13
|
+
io.format("Product: ~p~n", [A * B])
|
14
|
+
io.format("Quotient: ~p~n", [A / B])
|
15
|
+
io.format("Remainder: ~p~n", [A % B])
|
16
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
{{works with|SmartEiffel|2.4}}
|
2
|
+
In a file called main.e:
|
3
|
+
class MAIN
|
4
|
+
creation make
|
5
|
+
feature make is
|
6
|
+
local
|
7
|
+
a, b: REAL;
|
8
|
+
do
|
9
|
+
print("a = ");
|
10
|
+
io.read_real;
|
11
|
+
a := io.last_real;
|
12
|
+
|
13
|
+
print("b = ");
|
14
|
+
io.read_real;
|
15
|
+
b := io.last_real;
|
16
|
+
|
17
|
+
print("a + b = ");
|
18
|
+
io.put_real(a + b);
|
19
|
+
print("%Na - b = ");
|
20
|
+
io.put_real(a - b);
|
21
|
+
print("%Na * b = ");
|
22
|
+
io.put_real(a * b);
|
23
|
+
print("%Na / b = ");
|
24
|
+
io.put_real(a / b);
|
25
|
+
print("%Na %% b = ");
|
26
|
+
io.put_real(((a / b) - (a / b).floor) * b);
|
27
|
+
print("%Na ^ b = ");
|
28
|
+
io.put_real(a.pow(b));
|
29
|
+
print("%N");
|
30
|
+
end
|
31
|
+
end
|
32
|
+
Note that there actually is a builtin modulo operator (\\). However, it seems impossible to use that instruction with SmartEiffel.
|
@@ -0,0 +1,16 @@
|
|
1
|
+
ELENA 4.x :
|
2
|
+
import system'math;
|
3
|
+
import extensions;
|
4
|
+
|
5
|
+
public program()
|
6
|
+
{
|
7
|
+
var a := console.loadLineTo(new Integer());
|
8
|
+
var b := console.loadLineTo(new Integer());
|
9
|
+
|
10
|
+
console.printLine(a," + ",b," = ",a + b);
|
11
|
+
console.printLine(a," - ",b," = ",a - b);
|
12
|
+
console.printLine(a," * ",b," = ",a * b);
|
13
|
+
console.printLine(a," / ",b," = ",a / b); // truncates towards 0
|
14
|
+
console.printLine(a," % ",b," = ",a.mod:b); // matches sign of first operand
|
15
|
+
console.printLine(a," ^ ",b," = ",a ^ b);
|
16
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{{works with|Elixir|1.4}}
|
2
|
+
defmodule Arithmetic_Integer do
|
3
|
+
# Function to remove line breaks and convert string to int
|
4
|
+
defp get_int(msg) do
|
5
|
+
IO.gets(msg) |> String.strip |> String.to_integer
|
6
|
+
end
|
7
|
+
|
8
|
+
def task do
|
9
|
+
# Get user input
|
10
|
+
a = get_int("Enter your first integer: ")
|
11
|
+
b = get_int("Enter your second integer: ")
|
12
|
+
|
13
|
+
IO.puts "Elixir Integer Arithmetic:\n"
|
14
|
+
IO.puts "Sum: #{a + b}"
|
15
|
+
IO.puts "Difference: #{a - b}"
|
16
|
+
IO.puts "Product: #{a * b}"
|
17
|
+
IO.puts "True Division: #{a / b}" # Float
|
18
|
+
IO.puts "Division: #{div(a,b)}" # Truncated Towards 0
|
19
|
+
IO.puts "Floor Division: #{Integer.floor_div(a,b)}" # floored integer division
|
20
|
+
IO.puts "Remainder: #{rem(a,b)}" # Sign from first digit
|
21
|
+
IO.puts "Modulo: #{Integer.mod(a,b)}" # modulo remainder (uses floored division)
|
22
|
+
IO.puts "Exponent: #{:math.pow(a,b)}" # Float, using Erlang's :math
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
Arithmetic_Integer.task
|
@@ -0,0 +1,15 @@
|
|
1
|
+
% Implemented by Arjun Sunel
|
2
|
+
-module(arith).
|
3
|
+
-export([start/0]).
|
4
|
+
|
5
|
+
start() ->
|
6
|
+
case io:fread("","~d~d") of
|
7
|
+
{ok, [A,B]} ->
|
8
|
+
io:format("Sum = ~w~n",[A+B]),
|
9
|
+
io:format("Difference = ~w~n",[A-B]),
|
10
|
+
io:format("Product = ~w~n",[A*B]),
|
11
|
+
io:format("Quotient = ~w~n",[A div B]), % truncates towards zero
|
12
|
+
io:format("Remainder= ~w~n",[A rem B]), % same sign as the first operand
|
13
|
+
halt()
|
14
|
+
end.
|
15
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
|
2
|
+
PROGRAM INTEGER_ARITHMETIC
|
3
|
+
|
4
|
+
!
|
5
|
+
! for rosettacode.org
|
6
|
+
!
|
7
|
+
|
8
|
+
!$INTEGER
|
9
|
+
|
10
|
+
BEGIN
|
11
|
+
INPUT("Enter a number ",A)
|
12
|
+
INPUT("Enter another number ",B)
|
13
|
+
|
14
|
+
PRINT("Addition ";A;"+";B;"=";(A+B))
|
15
|
+
PRINT("Subtraction ";A;"-";B;"=";(A-B))
|
16
|
+
PRINT("Multiplication ";A;"*";B;"=";(A*B))
|
17
|
+
PRINT("Integer division ";A;"div";B;"=";(A DIV B))
|
18
|
+
PRINT("Remainder or modulo ";A;"mod";B;"=";(A MOD B))
|
19
|
+
PRINT("Power ";A;"^";B;"=";(A^B))
|
20
|
+
END PROGRAM
|
@@ -0,0 +1,13 @@
|
|
1
|
+
include get.e
|
2
|
+
|
3
|
+
integer a,b
|
4
|
+
|
5
|
+
a = floor(prompt_number("a = ",{}))
|
6
|
+
b = floor(prompt_number("b = ",{}))
|
7
|
+
|
8
|
+
printf(1,"a + b = %d\n", a+b)
|
9
|
+
printf(1,"a - b = %d\n", a-b)
|
10
|
+
printf(1,"a * b = %d\n", a*b)
|
11
|
+
printf(1,"a / b = %g\n", a/b) -- does not truncate
|
12
|
+
printf(1,"remainder(a,b) = %d\n", remainder(a,b)) -- same sign as first operand
|
13
|
+
printf(1,"power(a,b) = %g\n", power(a,b))
|
@@ -0,0 +1,32 @@
|
|
1
|
+
|
2
|
+
If the numbers are typed into cells A1 and B1
|
3
|
+
|
4
|
+
For sum, type in C1
|
5
|
+
|
6
|
+
=$A1+$B1
|
7
|
+
|
8
|
+
|
9
|
+
For difference, type in D1
|
10
|
+
|
11
|
+
=$A1-$B1
|
12
|
+
|
13
|
+
|
14
|
+
For product, type in E1
|
15
|
+
|
16
|
+
=$A1*$B1
|
17
|
+
|
18
|
+
|
19
|
+
For quotient, type in F1
|
20
|
+
|
21
|
+
=QUOTIENT($A1,$B1)
|
22
|
+
|
23
|
+
|
24
|
+
For remainder, type in G1
|
25
|
+
|
26
|
+
=MOD($A1,$B1)
|
27
|
+
|
28
|
+
|
29
|
+
For exponentiation, type in H1
|
30
|
+
|
31
|
+
=$A1^$B1
|
32
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
As F# is a functional language, we can easily create a list of pairs of the string name of a function and the function itself to iterate over printing the operation and applying the function to obtain the result:
|
2
|
+
|
3
|
+
do
|
4
|
+
let a, b = int Sys.argv.[1], int Sys.argv.[2]
|
5
|
+
for str, f in ["+", ( + ); "-", ( - ); "*", ( * ); "/", ( / ); "%", ( % )] do
|
6
|
+
printf "%d %s %d = %d\n" a str b (f a b)
|
7
|
+
|
8
|
+
For example, the output with the arguments 4 and 3 is:
|
9
|
+
|
10
|
+
4 + 3 = 7
|
11
|
+
4 - 3 = 1
|
12
|
+
4 * 3 = 12
|
13
|
+
4 / 3 = 1
|
14
|
+
4 % 3 = 1
|
15
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
USING: combinators io kernel math math.functions math.order
|
2
|
+
math.parser prettyprint ;
|
3
|
+
|
4
|
+
"a=" "b=" [ write readln string>number ] bi@
|
5
|
+
{
|
6
|
+
[ + "sum: " write . ]
|
7
|
+
[ - "difference: " write . ]
|
8
|
+
[ * "product: " write . ]
|
9
|
+
[ / "quotient: " write . ]
|
10
|
+
[ /i "integer quotient: " write . ]
|
11
|
+
[ rem "remainder: " write . ]
|
12
|
+
[ mod "modulo: " write . ]
|
13
|
+
[ max "maximum: " write . ]
|
14
|
+
[ min "minimum: " write . ]
|
15
|
+
[ gcd "gcd: " write . drop ]
|
16
|
+
[ lcm "lcm: " write . ]
|
17
|
+
} 2cleave
|
@@ -0,0 +1,10 @@
|
|
1
|
+
Integer division rounds towards zero; remainders are always positive regardless of the signs of the numbers.
|
2
|
+
|
3
|
+
?a;
|
4
|
+
?b;
|
5
|
+
!!('Sum: a+b=',a+b);
|
6
|
+
!!('Difference: a-b=',a-b);
|
7
|
+
!!('Product: a*b=',a*b);
|
8
|
+
!!('Integer quotient: a\b=',a\b);
|
9
|
+
!!('Remainder: a|b=',a|b);
|
10
|
+
!!('Exponentiation: a^b=',a^b);
|
@@ -0,0 +1,19 @@
|
|
1
|
+
To keep the example simple, the word takes the two numbers from the stack. '''/mod''' returns two results; the stack effect is ( a b -- a%b a/b ).
|
2
|
+
: arithmetic ( a b -- )
|
3
|
+
cr ." a=" over . ." b=" dup .
|
4
|
+
cr ." a+b=" 2dup + .
|
5
|
+
cr ." a-b=" 2dup - .
|
6
|
+
cr ." a*b=" 2dup * .
|
7
|
+
cr ." a/b=" /mod .
|
8
|
+
cr ." a mod b = " . cr ;
|
9
|
+
|
10
|
+
Different host systems have different native signed division behavior. ANS Forth defines two primitive double-precision signed division operations, from which the implementation may choose the most natural to implement the basic divide operations ( / , /mod , mod , */ ). This is partly due to differing specifications in the two previous standards, Forth-79 and Forth-83.
|
11
|
+
|
12
|
+
FM/MOD ( d n -- mod div ) \ floored
|
13
|
+
SM/REM ( d n -- rem div ) \ symmetric
|
14
|
+
M* ( n n -- d )
|
15
|
+
|
16
|
+
In addition, there are unsigned variants.
|
17
|
+
|
18
|
+
UM/MOD ( ud u -- umod udiv )
|
19
|
+
UM* ( u u -- ud )
|
@@ -0,0 +1,15 @@
|
|
1
|
+
In ANSI FORTRAN 77 or later:
|
2
|
+
INTEGER A, B
|
3
|
+
PRINT *, 'Type in two integer numbers separated by white space',
|
4
|
+
+ ' and press ENTER'
|
5
|
+
READ *, A, B
|
6
|
+
PRINT *, ' A + B = ', (A + B)
|
7
|
+
PRINT *, ' A - B = ', (A - B)
|
8
|
+
PRINT *, ' A * B = ', (A * B)
|
9
|
+
PRINT *, ' A / B = ', (A / B)
|
10
|
+
PRINT *, 'MOD(A,B) = ', MOD(A,B)
|
11
|
+
PRINT *
|
12
|
+
PRINT *, 'Even though you did not ask, ',
|
13
|
+
+ 'exponentiation is an intrinsic op in Fortran, so...'
|
14
|
+
PRINT *, ' A ** B = ', (A ** B)
|
15
|
+
END
|
@@ -0,0 +1,18 @@
|
|
1
|
+
' FB 1.05.0 Win64
|
2
|
+
|
3
|
+
Dim As Integer i, j
|
4
|
+
Input "Enter two integers separated by a comma"; i, j
|
5
|
+
Print i;" + "; j; " = "; i + j
|
6
|
+
Print i;" - "; j; " = "; i - j
|
7
|
+
Print i;" * "; j; " = "; i * j
|
8
|
+
Print i;" / "; j; " = "; i \ j
|
9
|
+
Print i;" % "; j; " = "; i Mod j
|
10
|
+
Print i;" ^ "; j; " = "; i ^ j
|
11
|
+
Sleep
|
12
|
+
|
13
|
+
' Integer division (for which FB uses the '\' operator) rounds towards zero
|
14
|
+
|
15
|
+
' Remainder (for which FB uses the Mod operator) will, if non-zero, match the sign
|
16
|
+
' of the first operand
|
17
|
+
|
18
|
+
Sample input and output:-
|
@@ -0,0 +1,10 @@
|
|
1
|
+
|
2
|
+
read a
|
3
|
+
read b
|
4
|
+
echo 'a + b =' (math "$a + $b") # Sum
|
5
|
+
echo 'a - b =' (math "$a - $b") # Difference
|
6
|
+
echo 'a * b =' (math "$a * $b") # Product
|
7
|
+
echo 'a / b =' (math "$a / $b") # Integer quotient
|
8
|
+
echo 'a % b =' (math "$a % $b") # Remainder
|
9
|
+
echo 'a ^ b =' (math "$a ^ $b") # Exponentation
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
This demonstrates normal division (which produces rational numbers when possible), <CODE>div</CODE>, and <CODE>mod</CODE>. <CODE>div</CODE> rounds toward negative infinity (defined as <CODE>floor[x/y]</CODE>). <CODE>mod</CODE> uses the sign of the second number (defined as <CODE>x - y * floor[x/y]</CODE>). All operators automatically produce big integers or exact rational numbers when necessary.
|
2
|
+
|
3
|
+
[a,b] = input["Enter numbers",["a","b"]]
|
4
|
+
ops=["+", "-", "*", "/", "div" ,"mod" ,"^"]
|
5
|
+
for op = ops
|
6
|
+
{
|
7
|
+
str = "$a $op $b"
|
8
|
+
println["$str = " + eval[str]]
|
9
|
+
}
|
10
|
+
|