VBScripts
Pages
Home
VBScript Basics
VBScripts Examples
Monday, 10 October 2011
Script 2: Write a script to find the area of a triangle.
Dim Base, Height, Area
Base = CDbl (InputBox ("Please enter the Base"))
Height = CDbl (InputBox ("Please enter the Height"))
Area = 0.5 * Base * Height
MsgBox Area
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment