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