Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Arithmetic-Integer/VBScript/arithmetic-integer-1.vb
Normal file
17
Task/Arithmetic-Integer/VBScript/arithmetic-integer-1.vb
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
option explicit
|
||||
dim a, b
|
||||
wscript.stdout.write "A? "
|
||||
a = wscript.stdin.readline
|
||||
wscript.stdout.write "B? "
|
||||
b = wscript.stdin.readline
|
||||
|
||||
a = int( a )
|
||||
b = int( b )
|
||||
|
||||
wscript.echo "a + b=", a + b
|
||||
wscript.echo "a - b=", a - b
|
||||
wscript.echo "a * b=", a * b
|
||||
wscript.echo "a / b=", a / b
|
||||
wscript.echo "a \ b=", a \ b
|
||||
wscript.echo "a mod b=", a mod b
|
||||
wscript.echo "a ^ b=", a ^ b
|
||||
14
Task/Arithmetic-Integer/VBScript/arithmetic-integer-2.vb
Normal file
14
Task/Arithmetic-Integer/VBScript/arithmetic-integer-2.vb
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
option explicit
|
||||
dim a, b
|
||||
wscript.stdout.write "A? "
|
||||
a = wscript.stdin.readline
|
||||
wscript.stdout.write "B? "
|
||||
b = wscript.stdin.readline
|
||||
|
||||
a = int( a )
|
||||
b = int( b )
|
||||
|
||||
dim op
|
||||
for each op in split("+ - * / \ mod ^", " ")
|
||||
wscript.echo "a",op,"b=",eval( "a " & op & " b")
|
||||
next
|
||||
Loading…
Add table
Add a link
Reference in a new issue