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.
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:
Post a Comment