Exercise 4-1b

The asp code (hidden) reads as follows:

Length = 20
Width = 15
iArea = length * width
' Since I have assigned numerical values to length, width, and area, they are now integers.
' Notice that you cannot calculate the area until the length and width have been read.
' In order to display the area using a contcantenated expression, I must first convert the
' area to a string. I do so with the following statement:
sArea = iArea

I can now use a concantenated string to display the area:

<% response.write "The area is " & sArea %>

The area is 300