Sindbad~EG File Manager

Current Path : /usr/tests/usr.bin/gh-bc/tests/bc/
Upload File :
Current File : //usr/tests/usr.bin/gh-bc/tests/bc/assignments.txt

define x(x) {
	return (i++ + x)
}
define y(x) {
	return (++i + x)
}
define z(x) {
	return (i *= 2) + x
}

i++
i--
++i
--i

(i++)
(i--)
(++i)
(--i)

i += 1
i
i -= -4
i
i *= 5
i
i /= 12.5
i

i = 0

(i += 1)
(i -= -4)
(i *= 5)
(i /= 12.5)

i = 0

a[i++] += ++i
i--
i--
i
a[i]

a[i]++
a[i]--
++a[i]
--a[i]

i += 4
i

sqrt(i *= 4)
i
length(i /= 2)
i

i = 4
scale(i /= 2)
i

i = -1

abs(i--)
abs(--i)
abs(++i)
abs(i++)

i = -i

a = 4

x(a)
i

x(a *= 5)
a
i

a = 4

y(a)
i

y(a -= 2)
a
i

a = 4

z(a)
i

z(a /= 0.5)
a
i

i = 1

if (i -= 1) print "true\n"
else print "false\n"

if (i += 1) print "true\n"
else print "false\n"

i = 3

while (i -= 2) print "i: ", i += 1, "\n"

a = 5

for (i = 5; i-= 1; --a) print "i: ", i, "; a: ", a, "\n"

define void t(x, y) {
	print "x: ", x, "; y: ", y, "\n"
}

t(i++, i++)
i

t(++i, ++i)
i

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists