home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
libbasic
/
power.bas
< prev
next >
Wrap
BASIC Source File
|
1992-03-02
|
288b
|
16 lines
' a test to see if the mathematical precedences
' function correctly
' the answers are -1.9465020
' -7808.5
a = 2
b = 5
c = 1.5
d = -6
e = 12
print a - b + c ^ d * e
print 5 * 2 - 5 ^ 6 / 2 - 6