Multiplication in VBscript

I want to build an VBscript application that can multiply two numbers. It will show the popup.
LVL 1
netazimAsked:
Who is Participating?
 
Estridge06Connect With a Mentor Commented:
Try the attached code. Save as multiply.vbs and run it.

Option Explicit


Dim num1, num2, answer

'Set Variables
	num1 = InputBox ("Type the first number.")
	num2 = InputBox ("Type the second number.")
	
'Multiply the 2 numbers

	answer = num1 * num2
	
	MsgBox(num1 & " x " & num2 & " = " & answer)

Open in new window

0
 
Chris BottomleySoftware Quality Lead EngineerCommented:
Errr, netazim

This sounds a lot like an assignment to me and if please note you are requested to up front about it as we are not supposed to answer assignments ... rather lead you to an answer.

Chris
0
 
Bill PrewCommented:
+1

~bp
0
 
netazimAuthor Commented:
nevermind, this is my past question for my final exams. i dont have time to do revision. TQ very much for your reprimand. i will cancel my premium subscription next month... tq very much
0
 
netazimAuthor Commented:
Or you can just delete this topic if you want :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.