Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Arithmetic-Integer/Vim-Script/arithmetic-integer.vim
Normal file
10
Task/Arithmetic-Integer/Vim-Script/arithmetic-integer.vim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
let a = float2nr(input("Number 1: ") + 0)
|
||||
let b = float2nr(input("Number 2: ") + 0)
|
||||
echo "\nSum: " . (a + b)
|
||||
echo "Difference: " . (a - b)
|
||||
echo "Product: " . (a * b)
|
||||
" The result of an integer division is truncated
|
||||
echo "Quotient: " . (a / b)
|
||||
" The sign of the result of the remainder operation matches the sign of
|
||||
" the first operand
|
||||
echo "Remainder: " . (a % b)
|
||||
Loading…
Add table
Add a link
Reference in a new issue