Tuesday, February 21, 2012

Action Script Warmup


Create a variable called nRoom it will contain a Number, make the value 8.
Create a variable called nFloor it will contain a Number make the value 10.
Create a variable called totRoom and calculate the total number of rooms.

Trace the variables to create the following output:

The building has 10 floors with 8 rooms per floor, for a total of 80 rooms.

No comments: