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,158 @@
|
|
1
|
+
Basic program
|
2
|
+
|
3
|
+
window 1, @"Integer Arithmetic", ( 0, 0, 400, 300 )
|
4
|
+
|
5
|
+
NSInteger a = 25
|
6
|
+
NSInteger b = 53
|
7
|
+
|
8
|
+
print "addition "a" + "b" = " (a + b)
|
9
|
+
print "subtraction "a" - "b" = " (a - b)
|
10
|
+
print "multiplication "a" * "b" = " (a * b)
|
11
|
+
print "division "a" / "b" = " (a / b)
|
12
|
+
printf @"float division %ld / %ld = %f", a, b, (float)a / (float)b
|
13
|
+
print "modulo "a" % "b" = " (a mod b)
|
14
|
+
print "power "a" ^ "b" = " (a ^ b)
|
15
|
+
|
16
|
+
HandleEvents
|
17
|
+
|
18
|
+
|
19
|
+
Output:
|
20
|
+
|
21
|
+
addition: 25 + 53 = 78
|
22
|
+
subtraction: 25 - 53 = -28
|
23
|
+
multiplication: 25 * 53 = 1325
|
24
|
+
division: 25 / 53 = 0
|
25
|
+
float division: 25 / 53 = 0.471698
|
26
|
+
modulo: 25 mod 53 = 25
|
27
|
+
power: 25 ^ 53 = 1.232595e+74
|
28
|
+
|
29
|
+
|
30
|
+
Standalone Intel, M1, M2 Macintosh application with user input
|
31
|
+
|
32
|
+
|
33
|
+
_window = 1
|
34
|
+
begin enum 1
|
35
|
+
_int1Label
|
36
|
+
_int1Field
|
37
|
+
_int2Label
|
38
|
+
_int2Field
|
39
|
+
_calcResults
|
40
|
+
_calcBtn
|
41
|
+
end enum
|
42
|
+
|
43
|
+
void local fn BuildWindow
|
44
|
+
CGRect r
|
45
|
+
|
46
|
+
r = fn CGRectMake( 0, 0, 480, 360 )
|
47
|
+
window _window, @"Integer Arithmetic", r, NSWindowStyleMaskTitled + NSWindowStyleMaskClosable + NSWindowStyleMaskMiniaturizable
|
48
|
+
|
49
|
+
r = fn CGRectMake( 240, 320, 150, 24 )
|
50
|
+
textlabel _int1Label, @"Enter first integer:", r, _window
|
51
|
+
ControlSetAlignment( _int1Label, NSTextAlignmentRight )
|
52
|
+
r = fn CGRectMake( 400, 322, 60, 24 )
|
53
|
+
textfield _int1Field, YES, @"25", r, _window
|
54
|
+
ControlSetAlignment( _int1Field, NSTextAlignmentCenter )
|
55
|
+
ControlSetUsesSingleLineMode( _int1Field, YES )
|
56
|
+
ControlSetFormat( _int1Field, @"0123456789-", YES, 5, NULL )
|
57
|
+
|
58
|
+
r = fn CGRectMake( 240, 290, 150, 24 )
|
59
|
+
textlabel _int2Label, @"Enter second integer:", r, _window
|
60
|
+
ControlSetAlignment( _int2Label, NSTextAlignmentRight )
|
61
|
+
r = fn CGRectMake( 400, 292, 60, 24 )
|
62
|
+
textfield _int2Field, YES, @"53", r, _window
|
63
|
+
ControlSetAlignment( _int2Field, NSTextAlignmentCenter )
|
64
|
+
ControlSetUsesSingleLineMode( _int2Field, YES )
|
65
|
+
ControlSetFormat( _int2Field, @"0123456789-", YES, 5, NULL )
|
66
|
+
|
67
|
+
r = fn CGRectMake( 50, 60, 380, 200 )
|
68
|
+
textview _calcResults, r,,, _window
|
69
|
+
TextViewSetTextContainerInset( _calcResults, fn CGSizeMake( 10, 20 ) )
|
70
|
+
TextSetFontWithName( _calcResults, @"Menlo", 13.0 )
|
71
|
+
TextViewSetEditable( _calcResults, NO )
|
72
|
+
|
73
|
+
r = fn CGRectMake( 370, 13, 100, 32 )
|
74
|
+
button _calcBtn,,, @"Calculate", r
|
75
|
+
end fn
|
76
|
+
|
77
|
+
local fn PerformCalculations
|
78
|
+
CFStringRef tempStr
|
79
|
+
|
80
|
+
NSInteger i1 = fn ControlIntegerValue( _int1Field )
|
81
|
+
NSInteger i2 = fn ControlIntegerValue( _int2Field )
|
82
|
+
|
83
|
+
CFMutableStringRef mutStr = fn MutableStringWithCapacity( 0 )
|
84
|
+
|
85
|
+
// Display inout integers
|
86
|
+
tempStr = fn StringWithFormat( @"Number 1: %ld\nNumber 2: %ld\n\n", i1, i2 )
|
87
|
+
MutableStringAppendString( mutStr, tempStr )
|
88
|
+
|
89
|
+
// Add
|
90
|
+
tempStr = fn StringWithFormat( @"Addition: %ld + %ld = %ld\n", i1, i2, i1 + i2 )
|
91
|
+
MutableStringAppendString( mutStr, tempStr )
|
92
|
+
|
93
|
+
// Subtract
|
94
|
+
tempStr = fn StringWithFormat( @"Subtraction: %ld - %ld = %ld\n", i1, i2, i1 - i2 )
|
95
|
+
MutableStringAppendString( mutStr, tempStr )
|
96
|
+
|
97
|
+
// Multiply
|
98
|
+
tempStr = fn StringWithFormat( @"Multiplication: %ld * %ld = %ld\n", i1, i2, i1 * i2 )
|
99
|
+
MutableStringAppendString( mutStr, tempStr )
|
100
|
+
|
101
|
+
if ( i2 != 0 )
|
102
|
+
|
103
|
+
// Divide
|
104
|
+
tempStr = fn StringWithFormat( @"Integer Division: %ld / %ld = %ld\n", i1, i2, i1 / i2 )
|
105
|
+
MutableStringAppendString( mutStr, tempStr )
|
106
|
+
|
107
|
+
// Float Divide
|
108
|
+
tempStr = fn StringWithFormat( @"Float Division: %ld / %ld = %f\n", i1, i2, (float)i1 / (float)i2 )
|
109
|
+
MutableStringAppendString( mutStr, tempStr )
|
110
|
+
|
111
|
+
// mod
|
112
|
+
tempStr = fn StringWithFormat( @"Modulo: %ld mod %ld = %ld remainder\n", i1, i2, i1 mod i2 )
|
113
|
+
MutableStringAppendString( mutStr, tempStr )
|
114
|
+
|
115
|
+
// power
|
116
|
+
tempStr = fn StringWithFormat( @"Power: %ld ^ %ld = %e\n", i1, i2, i1 ^ i2 )
|
117
|
+
MutableStringAppendString( mutStr, tempStr )
|
118
|
+
|
119
|
+
else
|
120
|
+
|
121
|
+
MutableStringAppendString( mutStr, @"Cannot divide by zero." )
|
122
|
+
|
123
|
+
end if
|
124
|
+
|
125
|
+
TextSetString( _calcResults, mutStr )
|
126
|
+
end fn
|
127
|
+
|
128
|
+
void local fn DoDialog( ev as long, tag as long, wnd as long )
|
129
|
+
'~'1
|
130
|
+
select ( ev )
|
131
|
+
case _btnClick
|
132
|
+
select ( tag )
|
133
|
+
case _calcBtn : fn PerformCalculations
|
134
|
+
end select
|
135
|
+
case _windowWillClose : end
|
136
|
+
end select
|
137
|
+
end fn
|
138
|
+
|
139
|
+
on dialog fn DoDialog
|
140
|
+
|
141
|
+
fn BuildWindow
|
142
|
+
|
143
|
+
HandleEvents
|
144
|
+
|
145
|
+
|
146
|
+
Output:
|
147
|
+
|
148
|
+
Number 1: 25
|
149
|
+
Number 2: 53
|
150
|
+
|
151
|
+
Addition: 25 + 53 = 78
|
152
|
+
Subtraction: 25 - 53 = -28
|
153
|
+
Multiplication: 25 * 53 = 1325
|
154
|
+
Integer Division: 25 / 53 = 0
|
155
|
+
Float Division: 25 / 53 = 0.471698
|
156
|
+
Modulo: 25 mod 53 = 25 remainder
|
157
|
+
Power: 25 ^ 53 = 1.232595e+74
|
158
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
Public Sub Main()
|
2
|
+
Dim a, b As String
|
3
|
+
Dim c, d As Integer
|
4
|
+
|
5
|
+
Print "Enter two integer numbers, separated by space:"
|
6
|
+
Input a, b
|
7
|
+
|
8
|
+
c = CInt(a)
|
9
|
+
d = CInt(b)
|
10
|
+
|
11
|
+
Print "Sum: " & (c + d)
|
12
|
+
Print "Difference:" & (c - d)
|
13
|
+
Print "Product: " & (c * d)
|
14
|
+
Print "Integer: " & (c Div d)
|
15
|
+
Print "Remainder: " & (c Mod d)
|
16
|
+
Print "Exponentiation: " & (c ^ d)
|
17
|
+
|
18
|
+
End
|
19
|
+
|
20
|
+
Output:
|
21
|
+
|
22
|
+
Enter two integer numbers, separated by space:
|
23
|
+
8 1
|
24
|
+
Sum: 9
|
25
|
+
Difference:7
|
26
|
+
Product: 8
|
27
|
+
Integer: 8
|
28
|
+
Remainder: 0
|
29
|
+
Exponentiation: 8
|
30
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
run := function()
|
2
|
+
local a, b, f;
|
3
|
+
f := InputTextUser();
|
4
|
+
Print("a =\n");
|
5
|
+
a := Int(Chomp(ReadLine(f)));
|
6
|
+
Print("b =\n");
|
7
|
+
b := Int(Chomp(ReadLine(f)));
|
8
|
+
Display(Concatenation(String(a), " + ", String(b), " = ", String(a + b)));
|
9
|
+
Display(Concatenation(String(a), " - ", String(b), " = ", String(a - b)));
|
10
|
+
Display(Concatenation(String(a), " * ", String(b), " = ", String(a * b)));
|
11
|
+
Display(Concatenation(String(a), " / ", String(b), " = ", String(QuoInt(a, b)))); # toward 0
|
12
|
+
Display(Concatenation(String(a), " mod ", String(b), " = ", String(RemInt(a, b)))); # nonnegative
|
13
|
+
Display(Concatenation(String(a), " ^ ", String(b), " = ", String(a ^ b)));
|
14
|
+
CloseStream(f);
|
15
|
+
end;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
Note: Using ''init:int'' and the ''return'' from the init block was introduced in release 0.43.92, February 2019.
|
2
|
+
|
3
|
+
[indent=4]
|
4
|
+
/*
|
5
|
+
Arithmethic/Integer, in Genie
|
6
|
+
valac arithmethic-integer.gs
|
7
|
+
*/
|
8
|
+
|
9
|
+
init:int
|
10
|
+
a:int = 0
|
11
|
+
b:int = 0
|
12
|
+
if args.length > 2 do b = int.parse(args[2])
|
13
|
+
if args.length > 1 do a = int.parse(args[1])
|
14
|
+
|
15
|
+
print @"a+b: $a plus $b is $(a+b)"
|
16
|
+
print @"a-b: $a minus $b is $(a-b)"
|
17
|
+
print @"a*b: $a times $b is $(a*b)"
|
18
|
+
print @"a/b: $a by $b quotient is $(a/b) (rounded mode is TRUNCATION)"
|
19
|
+
print @"a%b: $a by $b remainder is $(a%b) (sign matches first operand)"
|
20
|
+
|
21
|
+
print "\nGenie does not include a raise to power operator"
|
22
|
+
|
23
|
+
return 0
|
@@ -0,0 +1,66 @@
|
|
1
|
+
===int===
|
2
|
+
package main
|
3
|
+
|
4
|
+
import "fmt"
|
5
|
+
|
6
|
+
func main() {
|
7
|
+
var a, b int
|
8
|
+
fmt.Print("enter two integers: ")
|
9
|
+
fmt.Scanln(&a, &b)
|
10
|
+
fmt.Printf("%d + %d = %d\n", a, b, a+b)
|
11
|
+
fmt.Printf("%d - %d = %d\n", a, b, a-b)
|
12
|
+
fmt.Printf("%d * %d = %d\n", a, b, a*b)
|
13
|
+
fmt.Printf("%d / %d = %d\n", a, b, a/b) // truncates towards 0
|
14
|
+
fmt.Printf("%d %% %d = %d\n", a, b, a%b) // same sign as first operand
|
15
|
+
// no exponentiation operator
|
16
|
+
}
|
17
|
+
{{out|Example run}}
|
18
|
+
|
19
|
+
enter two integers: -5 3
|
20
|
+
-5 + 3 = -2
|
21
|
+
-5 - 3 = -8
|
22
|
+
-5 * 3 = -15
|
23
|
+
-5 / 3 = -1
|
24
|
+
-5 % 3 = -2
|
25
|
+
|
26
|
+
===big.Int===
|
27
|
+
package main
|
28
|
+
|
29
|
+
import (
|
30
|
+
"fmt"
|
31
|
+
"math/big"
|
32
|
+
)
|
33
|
+
|
34
|
+
func main() {
|
35
|
+
var a, b, c big.Int
|
36
|
+
fmt.Print("enter two integers: ")
|
37
|
+
fmt.Scan(&a, &b)
|
38
|
+
fmt.Printf("%d + %d = %d\n", &a, &b, c.Add(&a, &b))
|
39
|
+
fmt.Printf("%d - %d = %d\n", &a, &b, c.Sub(&a, &b))
|
40
|
+
fmt.Printf("%d * %d = %d\n", &a, &b, c.Mul(&a, &b))
|
41
|
+
|
42
|
+
// Quo, Rem functions work like Go operators on int:
|
43
|
+
// quo truncates toward 0,
|
44
|
+
// and a non-zero rem has the same sign as the first operand.
|
45
|
+
fmt.Printf("%d quo %d = %d\n", &a, &b, c.Quo(&a, &b))
|
46
|
+
fmt.Printf("%d rem %d = %d\n", &a, &b, c.Rem(&a, &b))
|
47
|
+
|
48
|
+
// Div, Mod functions do Euclidean division:
|
49
|
+
// the result m = a mod b is always non-negative,
|
50
|
+
// and for d = a div b, the results d and m give d*y + m = x.
|
51
|
+
fmt.Printf("%d div %d = %d\n", &a, &b, c.Div(&a, &b))
|
52
|
+
fmt.Printf("%d mod %d = %d\n", &a, &b, c.Mod(&a, &b))
|
53
|
+
|
54
|
+
// as with int, no exponentiation operator
|
55
|
+
}
|
56
|
+
{{out|Example run}}
|
57
|
+
|
58
|
+
enter two integers: -5 3
|
59
|
+
-5 + 3 = -2
|
60
|
+
-5 - 3 = -8
|
61
|
+
-5 * 3 = -15
|
62
|
+
-5 quo 3 = -1
|
63
|
+
-5 rem 3 = -2
|
64
|
+
-5 div 3 = -2
|
65
|
+
-5 mod 3 = 1
|
66
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
'''Solution:'''
|
2
|
+
def arithmetic = { a, b ->
|
3
|
+
println """
|
4
|
+
a + b = ${a} + ${b} = ${a + b}
|
5
|
+
a - b = ${a} - ${b} = ${a - b}
|
6
|
+
a * b = ${a} * ${b} = ${a * b}
|
7
|
+
a / b = ${a} / ${b} = ${a / b} !!! Converts to floating point!
|
8
|
+
(int)(a / b) = (int)(${a} / ${b}) = ${(int)(a / b)} !!! Truncates downward after the fact
|
9
|
+
a.intdiv(b) = ${a}.intdiv(${b}) = ${a.intdiv(b)} !!! Behaves as if truncating downward, actual implementation varies
|
10
|
+
a % b = ${a} % ${b} = ${a % b}
|
11
|
+
|
12
|
+
Exponentiation is also a base arithmetic operation in Groovy, so:
|
13
|
+
a ** b = ${a} ** ${b} = ${a ** b}
|
14
|
+
"""
|
15
|
+
}
|
16
|
+
|
17
|
+
'''Test:'''
|
18
|
+
arithmetic(5,3)
|
@@ -0,0 +1,11 @@
|
|
1
|
+
procedure Test( a, b )
|
2
|
+
? "a+b", a + b
|
3
|
+
? "a-b", a - b
|
4
|
+
? "a*b", a * b
|
5
|
+
// The quotient isn't integer, so we use the Int() function, which truncates it downward.
|
6
|
+
? "a/b", Int( a / b )
|
7
|
+
// Remainder:
|
8
|
+
? "a%b", a % b
|
9
|
+
// Exponentiation is also a base arithmetic operation
|
10
|
+
? "a**b", a ** b
|
11
|
+
return
|
@@ -0,0 +1,16 @@
|
|
1
|
+
|
2
|
+
main = do
|
3
|
+
a <- readLn :: IO Integer
|
4
|
+
b <- readLn :: IO Integer
|
5
|
+
putStrLn $ "a + b = " ++ show (a + b)
|
6
|
+
putStrLn $ "a - b = " ++ show (a - b)
|
7
|
+
putStrLn $ "a * b = " ++ show (a * b)
|
8
|
+
putStrLn $ "a to the power of b = " ++ show (a ** b)
|
9
|
+
putStrLn $ "a to the power of b = " ++ show (a ^ b)
|
10
|
+
putStrLn $ "a to the power of b = " ++ show (a ^^ b)
|
11
|
+
putStrLn $ "a `div` b = " ++ show (a `div` b) -- truncates towards negative infinity
|
12
|
+
putStrLn $ "a `mod` b = " ++ show (a `mod` b) -- same sign as second operand
|
13
|
+
putStrLn $ "a `divMod` b = " ++ show (a `divMod` b)
|
14
|
+
putStrLn $ "a `quot` b = " ++ show (a `quot` b) -- truncates towards 0
|
15
|
+
putStrLn $ "a `rem` b = " ++ show (a `rem` b) -- same sign as first operand
|
16
|
+
putStrLn $ "a `quotRem` b = " ++ show (a `quotRem` b)
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class BasicIntegerArithmetic {
|
2
|
+
public static function main() {
|
3
|
+
var args =Sys.args();
|
4
|
+
if (args.length < 2) return;
|
5
|
+
var a = Std.parseFloat(args[0]);
|
6
|
+
var b = Std.parseFloat(args[1]);
|
7
|
+
trace("a+b = " + (a+b));
|
8
|
+
trace("a-b = " + (a-b));
|
9
|
+
trace("a*b = " + (a*b));
|
10
|
+
trace("a/b = " + (a/b));
|
11
|
+
trace("a%b = " + (a%b));
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
All numeric is 8-byte-float. Conversions are by INT, NINT, FLOOR, CEILING, or Formatted IO
|
2
|
+
DLG(Edit=A, Edit=B, TItle='Enter numeric A and B')
|
3
|
+
WRITE(Name) A, B
|
4
|
+
WRITE() ' A + B = ', A + B
|
5
|
+
WRITE() ' A - B = ', A - B
|
6
|
+
WRITE() ' A * B = ', A * B
|
7
|
+
WRITE() ' A / B = ', A / B ! no truncation
|
8
|
+
WRITE() 'truncate A / B = ', INT(A / B) ! truncates towards 0
|
9
|
+
WRITE() 'round next A / B = ', NINT(A / B) ! truncates towards next integer
|
10
|
+
WRITE() 'round down A / B = ', FLOOR(A / B) ! truncates towards minus infinity
|
11
|
+
WRITE() 'round up A / B = ', CEILING(A / B) ! truncates towards plus infinity
|
12
|
+
WRITE() 'remainder of A / B = ', MOD(A, B) ! same sign as A
|
13
|
+
WRITE() 'A to the power of B = ', A ^ B
|
14
|
+
WRITE() 'A to the power of B = ', A ** B
|
15
|
+
A=5; B=-4;
|
16
|
+
A + B = 1
|
17
|
+
A - B = 9
|
18
|
+
A * B = -20
|
19
|
+
A / B = -1.25
|
20
|
+
truncate A / B = -1
|
21
|
+
round next A / B = -1
|
22
|
+
round down A / B = -2
|
23
|
+
round up A / B = -1
|
24
|
+
remainder of A / B = 1
|
25
|
+
A to the power of B = 16E-4
|
26
|
+
A to the power of B = 16E-4
|
@@ -0,0 +1,14 @@
|
|
1
|
+
I64 *a, *b;
|
2
|
+
a = Str2I64(GetStr("Enter your first number: "));
|
3
|
+
b = Str2I64(GetStr("Enter your second number: "));
|
4
|
+
|
5
|
+
if (b == 0)
|
6
|
+
Print("Error: The second number must not be zero.\n");
|
7
|
+
else {
|
8
|
+
Print("a + b = %d\n", a + b);
|
9
|
+
Print("a - b = %d\n", a - b);
|
10
|
+
Print("a * b = %d\n", a * b);
|
11
|
+
Print("a / b = %d\n", a / b); /* rounds down */
|
12
|
+
Print("a % b = %d\n", a % b); /* same sign as first operand */
|
13
|
+
Print("a ` b = %d\n", a ` b);
|
14
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
main
|
2
|
+
a $= integer(in(' ')); ignore
|
3
|
+
b $= integer(in('\n')); ignore
|
4
|
+
|
5
|
+
print("Sum:" , a + b)
|
6
|
+
print("Difference:", a - b)
|
7
|
+
print("Product:" , a * b)
|
8
|
+
print("Quotient:" , a / b) // rounds towards zero
|
9
|
+
print("Modulus:" , a % b) // same sign as first operand
|
10
|
+
print("Exponent:" , a ^ b)
|
11
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
procedure main()
|
2
|
+
writes("Input 1st integer a := ")
|
3
|
+
a := integer(read())
|
4
|
+
writes("Input 2nd integer b := ")
|
5
|
+
b := integer(read())
|
6
|
+
|
7
|
+
write(" a + b = ",a+b)
|
8
|
+
write(" a - b = ",a-b)
|
9
|
+
write(" a * b = ",a*b)
|
10
|
+
write(" a / b = ",a/b, " rounds toward 0")
|
11
|
+
write(" a % b = ",a%b, " remainder sign matches a")
|
12
|
+
write(" a ^ b = ",a^b)
|
13
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
Enter Two Numbers is a room.
|
3
|
+
|
4
|
+
Numerically entering is an action applying to one number. Understand "[number]" as numerically entering.
|
5
|
+
|
6
|
+
The first number is a number that varies.
|
7
|
+
|
8
|
+
After numerically entering for the first time:
|
9
|
+
now the first number is the number understood.
|
10
|
+
|
11
|
+
After numerically entering for the second time:
|
12
|
+
let A be the first number;
|
13
|
+
let B be the number understood;
|
14
|
+
say "[A] + [B] = [A + B]."; [operator syntax]
|
15
|
+
say "[A] - [B] = [A minus B]."; [English syntax]
|
16
|
+
let P be given by P = A * B where P is a number; [inline equation]
|
17
|
+
say "[A] * [B] = [P].";
|
18
|
+
let Q be given by the Division Formula; [named equation]
|
19
|
+
say "[A] / [B] = [Q].";
|
20
|
+
say "[A] mod [B] = [remainder after dividing A by B].";
|
21
|
+
end the story.
|
22
|
+
|
23
|
+
Equation - Division Formula
|
24
|
+
Q = A / B
|
25
|
+
where Q is a number, A is a number, and B is a number.
|
26
|
+
|
27
|
+
This solution shows four syntaxes: mathematical operators, English operators, inline equations, and named equations. Division rounds toward zero, and the remainder has the same sign as the quotient.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
calc =: + , - , * , <.@% , |~ , ^
|
2
|
+
The function <code>calc</code> constructs a list of numeric results for this task. The implementation of integer division we use here (<code><.@%.</code>) rounds down (towards negative infinity), and this is compatible with the remainder implementation we use here.
|
3
|
+
17 calc 3
|
4
|
+
20 14 51 5 2 4913
|
5
|
+
|
6
|
+
The function <code>bia</code> assembles these results, textually:
|
7
|
+
|
8
|
+
labels =: ];.2 'Sum: Difference: Product: Quotient: Remainder: Exponentiation: '
|
9
|
+
combine =: ,. ":@,.
|
10
|
+
bia =: labels combine calc
|
11
|
+
|
12
|
+
17 bia 3
|
13
|
+
Sum: 20
|
14
|
+
Difference: 14
|
15
|
+
Product: 51
|
16
|
+
Quotient: 5
|
17
|
+
Remainder: 2
|
18
|
+
Exponentiation: 4913
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import java.util.Scanner;
|
2
|
+
|
3
|
+
public class IntegerArithmetic {
|
4
|
+
public static void main(String[] args) {
|
5
|
+
// Get the 2 numbers from command line arguments
|
6
|
+
Scanner sc = new Scanner(System.in);
|
7
|
+
int a = sc.nextInt();
|
8
|
+
int b = sc.nextInt();
|
9
|
+
|
10
|
+
int sum = a + b; // The result of adding 'a' and 'b' (Note: integer addition is discouraged in print statements due to confusion with string concatenation)
|
11
|
+
int difference = a - b; // The result of subtracting 'b' from 'a'
|
12
|
+
int product = a * b; // The result of multiplying 'a' and 'b'
|
13
|
+
int division = a / b; // The result of dividing 'a' by 'b' (Note: 'division' does not contain the fractional result)
|
14
|
+
int remainder = a % b; // The remainder of dividing 'a' by 'b'
|
15
|
+
|
16
|
+
System.out.println("a + b = " + sum);
|
17
|
+
System.out.println("a - b = " + difference);
|
18
|
+
System.out.println("a * b = " + product);
|
19
|
+
System.out.println("quotient of a / b = " + division); // truncates towards 0
|
20
|
+
System.out.println("remainder of a / b = " + remainder); // same sign as first operand
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
===WScript===
|
2
|
+
{{works with|JScript}}
|
3
|
+
{{works with|SpiderMonkey}}
|
4
|
+
Note that the operators work the same in all versions of JavaScript; the requirement for specific implementations is in order to get user input.
|
5
|
+
var a = parseInt(get_input("Enter an integer"), 10);
|
6
|
+
var b = parseInt(get_input("Enter an integer"), 10);
|
7
|
+
|
8
|
+
WScript.Echo("a = " + a);
|
9
|
+
WScript.Echo("b = " + b);
|
10
|
+
WScript.Echo("sum: a + b = " + (a + b));
|
11
|
+
WScript.Echo("difference: a - b = " + (a - b));
|
12
|
+
WScript.Echo("product: a * b = " + (a * b));
|
13
|
+
WScript.Echo("quotient: a / b = " + (a / b | 0)); // "| 0" casts it to an integer
|
14
|
+
WScript.Echo("remainder: a % b = " + (a % b));
|
15
|
+
|
16
|
+
function get_input(prompt) {
|
17
|
+
output(prompt);
|
18
|
+
try {
|
19
|
+
return WScript.StdIn.readLine();
|
20
|
+
} catch(e) {
|
21
|
+
return readline();
|
22
|
+
}
|
23
|
+
}
|
24
|
+
function output(prompt) {
|
25
|
+
try {
|
26
|
+
WScript.Echo(prompt);
|
27
|
+
} catch(e) {
|
28
|
+
print(prompt);
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Lines which do not have two integers are skipped:
|
2
|
+
|
3
|
+
def arithmetic:
|
4
|
+
split(" ") | select(length > 0) | map(tonumber)
|
5
|
+
| if length > 1 then
|
6
|
+
.[0] as $a | .[1] as $b
|
7
|
+
| "For a = \($a) and b = \($b):\n" +
|
8
|
+
"a + b = \($a + $b)\n" +
|
9
|
+
"a - b = \($a - $b)\n" +
|
10
|
+
"a * b = \($a * $b)\n" +
|
11
|
+
"a/b|floor = \($a / $b | floor)\n" +
|
12
|
+
"a % b = \($a % $b)\n" +
|
13
|
+
"a | exp = \($a | exp)\n"
|
14
|
+
else empty
|
15
|
+
end ;
|
16
|
+
|
17
|
+
arithmetic
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* Arthimetic/Integer, in Jsish */
|
3
|
+
var line = console.input();
|
4
|
+
var nums = line.match(/^\s*([+-]?[0-9]+)\s+([+-]?[0-9]+)\s*/);
|
5
|
+
var a = Number(nums[1]);
|
6
|
+
var b = Number(nums[2]);
|
7
|
+
|
8
|
+
puts("A is ", a, ", B is ", b);
|
9
|
+
puts("Sum A + B is ", a + b);
|
10
|
+
puts("Difference A - B is ", a - b);
|
11
|
+
puts("Product A * B is ", a * b);
|
12
|
+
puts("Integer quotient A / B is ", a / b | 0, " truncates toward 0");
|
13
|
+
puts("Remainder A % B is ", a % b, " sign follows first operand");
|
14
|
+
puts("Exponentiation A to the power B is ", Math.pow(a, b));
|
15
|
+
|
16
|
+
/*
|
17
|
+
=!INPUTSTART!=
|
18
|
+
7 4
|
19
|
+
=!INPUTEND!=
|
20
|
+
*/
|
21
|
+
|
22
|
+
|
23
|
+
/*
|
24
|
+
=!EXPECTSTART!=
|
25
|
+
A is 7 , B is 4
|
26
|
+
Sum A + B is 11
|
27
|
+
Difference A - B is 3
|
28
|
+
Product A * B is 28
|
29
|
+
Integer quotient A / B is 1 truncates toward 0
|
30
|
+
Remainder A % B is 3 sign follows first operand
|
31
|
+
Exponentiation A to the power B is 2401
|
32
|
+
=!EXPECTEND!=
|
33
|
+
*/
|
@@ -0,0 +1,41 @@
|
|
1
|
+
// version 1.1
|
2
|
+
|
3
|
+
fun main(args: Array<String>) {
|
4
|
+
val r = Regex("""-?\d+[ ]+-?\d+""")
|
5
|
+
while(true) {
|
6
|
+
print("Enter two integers separated by space(s) or q to quit: ")
|
7
|
+
val input: String = readLine()!!.trim()
|
8
|
+
if (input == "q" || input == "Q") break
|
9
|
+
if (!input.matches(r)) {
|
10
|
+
println("Invalid input, try again")
|
11
|
+
continue
|
12
|
+
}
|
13
|
+
val index = input.lastIndexOf(' ')
|
14
|
+
val a = input.substring(0, index).trimEnd().toLong()
|
15
|
+
val b = input.substring(index + 1).toLong()
|
16
|
+
println("$a + $b = ${a + b}")
|
17
|
+
println("$a - $b = ${a - b}")
|
18
|
+
println("$a * $b = ${a * b}")
|
19
|
+
if (b != 0L) {
|
20
|
+
println("$a / $b = ${a / b}") // rounds towards zero
|
21
|
+
println("$a % $b = ${a % b}") // if non-zero, matches sign of first operand
|
22
|
+
}
|
23
|
+
else {
|
24
|
+
println("$a / $b = undefined")
|
25
|
+
println("$a % $b = undefined")
|
26
|
+
}
|
27
|
+
val d = Math.pow(a.toDouble(), b.toDouble())
|
28
|
+
print("$a ^ $b = ")
|
29
|
+
if (d % 1.0 == 0.0) {
|
30
|
+
if (d >= Long.MIN_VALUE.toDouble() && d <= Long.MAX_VALUE.toDouble())
|
31
|
+
println("${d.toLong()}")
|
32
|
+
else
|
33
|
+
println("out of range")
|
34
|
+
}
|
35
|
+
else if (!d.isFinite())
|
36
|
+
println("not finite")
|
37
|
+
else
|
38
|
+
println("not integral")
|
39
|
+
println()
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
Translation of Racket
|
2
|
+
|
3
|
+
{def arithmetic
|
4
|
+
{lambda {:x :y}
|
5
|
+
{S.map {{lambda {:x :y :op}
|
6
|
+
{br}applying :op on :x & :y returns {:op :x :y}} :x :y}
|
7
|
+
+ - * / % pow max min = > <}}}
|
8
|
+
-> arithmetic
|
9
|
+
|
10
|
+
{arithmetic 8 12}
|
11
|
+
->
|
12
|
+
applying + on 8 & 12 returns 20
|
13
|
+
applying - on 8 & 12 returns -4
|
14
|
+
applying * on 8 & 12 returns 96
|
15
|
+
applying / on 8 & 12 returns 0.6666666666666666
|
16
|
+
applying % on 8 & 12 returns 8
|
17
|
+
applying pow on 8 & 12 returns 68719476736
|
18
|
+
applying max on 8 & 12 returns 12
|
19
|
+
applying min on 8 & 12 returns 8
|
20
|
+
applying = on 8 & 12 returns false
|
21
|
+
applying > on 8 & 12 returns false
|
22
|
+
applying < on 8 & 12 returns true
|
23
|
+
|