Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
24
Task/Arithmetic-Integer/NSIS/arithmetic-integer.nsis
Normal file
24
Task/Arithmetic-Integer/NSIS/arithmetic-integer.nsis
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
Function Arithmetic
|
||||
Push $0
|
||||
Push $1
|
||||
Push $2
|
||||
StrCpy $0 21
|
||||
StrCpy $1 -2
|
||||
|
||||
IntOp $2 $0 + $1
|
||||
DetailPrint "$0 + $1 = $2"
|
||||
IntOp $2 $0 - $1
|
||||
DetailPrint "$0 - $1 = $2"
|
||||
IntOp $2 $0 * $1
|
||||
DetailPrint "$0 * $1 = $2"
|
||||
IntOp $2 $0 / $1
|
||||
DetailPrint "$0 / $1 = $2"
|
||||
DetailPrint "Rounding is toward negative infinity"
|
||||
IntOp $2 $0 % $1
|
||||
DetailPrint "$0 % $1 = $2"
|
||||
DetailPrint "Sign of remainder matches the first number"
|
||||
|
||||
Pop $2
|
||||
Pop $1
|
||||
Pop $0
|
||||
FunctionEnd
|
||||
Loading…
Add table
Add a link
Reference in a new issue