Sha256: eff9697c6bfe46983cf7400c4c0b89fc82dc7f24acd905e420845c2a9027db9f

Contents?: true

Size: 389 Bytes

Versions: 10

Compression:

Stored size: 389 Bytes

Contents

class BasicIntegerArithmetic {
    public static function main() {
        var args =Sys.args();
        if (args.length < 2) return;
        var a = Std.parseFloat(args[0]);
        var b = Std.parseFloat(args[1]);
        trace("a+b = " + (a+b));
        trace("a-b = " + (a-b));
        trace("a*b = " + (a*b));
        trace("a/b = " + (a/b));
        trace("a%b = " + (a%b));
    }
}

Version data entries

10 entries across 7 versions & 1 rubygems

Version Path
zettacode-0.1.7 files.zettacode/arithmetic.integer/haxe.txt
zettacode-0.1.6 files.zettacode/arithmetic.integer/haxe.txt
zettacode-0.1.6 files.zettacode2/arithmetic.integer/haxe.txt
zettacode-0.1.5 files.zettacode/arithmetic.integer/haxe.txt
zettacode-0.1.5 files.zettacode2/arithmetic.integer/haxe.txt
zettacode-0.1.4 files.zettacode/arithmetic.integer/haxe.txt
zettacode-0.1.4 files.zettacode2/arithmetic.integer/haxe.txt
zettacode-0.1.3 files.zettacode/arithmetic.integer/haxe.txt
zettacode-0.1.2 files.zettacode/arithmetic.integer/haxe.txt
zettacode-0.1.1 zettacode.files/arithmetic.integer/haxe.txt