INTERACTIVE TEST 3

JavaScript compatible inter-active version of this test.

1. Write a Pascal statement that sums the two integer variables digit and value into the variable total

2. Write a Pascal statement that subtracts the value 10 from the variable loop, leaving the result in the variable sum

3. Write a Pascal statement to display the value of the integer variable total

4. Write a Pascal statement to read in a character value into the variable letter

5. Write a Pascal statement to display the value of the real variable small_value using a field width of three places

Answers


Copyright B Brown/P Henry, 1988-1999. All rights reserved.