home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
rpos2101.zip
/
MATH.P
< prev
next >
Wrap
Text File
|
1998-06-05
|
825b
|
38 lines
R: math.p - A demonstration of RPilot's math features
: Written by Rob Linwood (auntfloyd@biosys.net)
T: This program is meant to show how good RPILOT is at math. I want
: you to give me two numbers, and I'll show you what I can do with them
:
: Ok, I'm ready for the first number
:
A: #first
T:
: Now the second
:
A: #second
C: #add = #first + #second
C: #sub = #first - #second
C: #mul = #first * #second
C: #div = #first / #second
C: #mod = #first % #second
C: #and = #first & #second
C: #or = #first | #second
C: #xor = #first ^ #second
T:
: #first + #second = #add
: #first - #second = #sub
: #first * #second = #mul
: #first / #second = #div
: #first modulo #second = #mod
: #first AND #second = #and
: #first OR #second = #or
: #first XOR #second = #xor
: