home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Phoenix CD 2.0
/
Phoenix_CD.cdr
/
01e
/
let12.zip
/
DEMO-1.BAT
< prev
next >
Wrap
DOS Batch File
|
1987-09-17
|
1KB
|
29 lines
echo Off
If `%Name%' == `' Demo
cls
echo ╔════════════════════════════════════════════════════════════════╗
echo ┌─╫────────────────────────────────────────────────────────────────╫─┐
echo │ ║ MATH using the LET command: ADD, SUB, MULT, DIV, and MOD ║ │
echo └─╫────────────────────────────────────────────────────────────────╫─┘
echo ╚════════════════════════════════════════════════════════════════╝
echo
echo The most fundamental part of LET is its ability to do arithmetic.
echo It can add, subtract, multiply, and divide integers (that is, whole
echo numbers) from -99,999,999,999 to 99,999,999,999. For example,
LET Dummy=(do "math")
echo Now, %N1% plus %N2% is %N1plusN2%,
echo %N1% minus %N2% is %N1minusN2%,
echo %N1% times %N2% is %N1timesN2%,
echo and %N1% divided by %N2% is %N1divN2% with a remainder of %N1modN2%
echo
echo How do you like them apples, %Name%?
set N1=
set N2=
set N1plusN2=
set N1minusN2=
set N1timesN2=
set N1divN2=
set N1modN2=
pause
DEMO-2