Sha256: 9daa7bbaeef3f6320d9447060db96bf31dd0a7c00d190664cad0e278e32f160d

Contents?: true

Size: 568 Bytes

Versions: 10

Compression:

Stored size: 568 Bytes

Contents

bundle Default {
  class Arithmetic {
    function : Main(args : System.String[]) ~ Nil {
      DoArithmetic();
    }
	
    function : native : DoArithmetic() ~ Nil {
      a := IO.Console->GetInstance()->ReadString()->ToInt();
      b := IO.Console->GetInstance()->ReadString()->ToInt();
  
      IO.Console->GetInstance()->Print("a+b = ")->PrintLine(a+b);
      IO.Console->GetInstance()->Print("a-b = ")->PrintLine(a-b);
      IO.Console->GetInstance()->Print("a*b = ")->PrintLine(a*b);
      IO.Console->GetInstance()->Print("a/b = ")->PrintLine(a/b);
    }
  }
}

Version data entries

10 entries across 7 versions & 1 rubygems

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