home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / libbasic / power.bas < prev    next >
BASIC Source File  |  1992-03-02  |  288b  |  16 lines

  1.  
  2.     ' a test to see if the mathematical precedences
  3.     ' function correctly 
  4.     ' the answers are   -1.9465020
  5.     '                             -7808.5
  6.  
  7.     a = 2
  8.     b = 5
  9.     c = 1.5
  10.     d = -6
  11.     e = 12
  12.  
  13.     print a - b + c ^ d * e
  14.  
  15.     print 5 * 2 - 5 ^ 6 / 2 - 6
  16.