Sha256: 7174e5f61df82d24b43ad96dd5bf3134c235db2e69aaf3f0899ce0d0add69c8a
Contents?: true
Size: 424 Bytes
Versions: 10
Compression:
Stored size: 424 Bytes
Contents
module arith; extern printf; extern scanf; @Integer main [ @Pointer<@Integer> a = alloc(4); @Pointer<@Integer> b = alloc(4); scanf("%i %i", a, b); printf("a + b = %i\n", a::get + b::get); printf("a - b = %i\n", a::get - b::get); printf("a * b = %i\n", a::get * b::get); printf("a / b = %i\n", a::get / b::get); printf("a % b = %i\n", a::get % b::get); printf("a ** b = %i\n", a::get ** b::get); return 0; ]
Version data entries
10 entries across 7 versions & 1 rubygems