Computer Studies‎ > ‎Turing‎ > ‎Turing Tutorial‎ > ‎

Turing 021b — Variables Review

This assignment will reinforce the three types of variables learned:
  • integer variables
  • real variables
  • string variables
Assignment

Write a program that declares 10 variables, using a combination of three variable types listed above. The prompt for and get values for the 10 variables. Last, output the 10 variables in sentence format (like "Your favourite colour is red", where "red" is value that was entered).

Save as "021b.t."
Comments