home *** CD-ROM | disk | FTP | other *** search
/ Phoenix CD 2.0 / Phoenix_CD.cdr / 01e / let12.zip / DEMO-1.BAT < prev    next >
DOS Batch File  |  1987-09-17  |  1KB  |  29 lines

  1. echo Off
  2. If `%Name%' == `' Demo
  3. cls
  4. echo   ╔════════════════════════════════════════════════════════════════╗
  5. echo ┌─╫────────────────────────────────────────────────────────────────╫─┐
  6. echo │ ║   MATH using the LET command: ADD, SUB, MULT, DIV, and MOD     ║ │
  7. echo └─╫────────────────────────────────────────────────────────────────╫─┘
  8. echo   ╚════════════════════════════════════════════════════════════════╝
  9. echo  
  10. echo The most fundamental part of LET is its ability to do arithmetic.
  11. echo It can add, subtract, multiply, and divide integers (that is, whole
  12. echo numbers) from -99,999,999,999 to 99,999,999,999. For example,
  13. LET Dummy=(do "math")
  14. echo Now, %N1% plus %N2% is %N1plusN2%,
  15. echo      %N1% minus %N2% is %N1minusN2%,
  16. echo      %N1% times %N2% is %N1timesN2%,
  17. echo and  %N1% divided by %N2% is %N1divN2% with a remainder of %N1modN2%
  18. echo  
  19. echo How do you like them apples, %Name%?
  20. set N1=
  21. set N2=
  22. set N1plusN2=
  23. set N1minusN2=
  24. set N1timesN2=
  25. set N1divN2=
  26. set N1modN2=
  27. pause
  28. DEMO-2
  29.