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