This Script Adds Two Numbers
<html>
<title>Your Page Title</title>
<body>
<script language = "vbscript">
dim num1, num2, sum 'variable declaration
num1 = inputbox ("Enter First Number : ") 'Asks for the First Number , treated the value as string
num2 = inputbox ("Enter Second Number : ") 'Asks for the Second Number , treated the value as string
sum = cint(num1) + cint(num2) 'adds the sum, cint is used to convert the the strings to integers.
'Removing cint will display sum as num1num2. For example if num1 = 2, num2 = 4, then sum = 24
msgbox sum 'Display the sum
</script>
</body>
</html>