VbScript
Dim a
Dim b
Dim c
a = WScript.Arguments.Item(0)
b = WScript.Arguments.Item(1)
c= Cint(a) + Cint(b)
Wscript.Stdout.Writeline(c)
-------------------------------------------------------
Javascript
var args = WScript.Arguments;
if (args.length > 0)
{
var val=0;
var str=args.item(0);
var ary = str.split(",");
for (var i=0; i < ary.length; i++)
{
val += parseInt(ary[i]);
}
WScript.StdOut.WriteLine(val);
}
Dim a
Dim b
Dim c
a = WScript.Arguments.Item(0)
b = WScript.Arguments.Item(1)
c= Cint(a) + Cint(b)
Wscript.Stdout.Writeline(c)
-------------------------------------------------------
Javascript
var args = WScript.Arguments;
if (args.length > 0)
{
var val=0;
var str=args.item(0);
var ary = str.split(",");
for (var i=0; i < ary.length; i++)
{
val += parseInt(ary[i]);
}
WScript.StdOut.WriteLine(val);
}