PROGRAM text;
{using text variables}
|
name : STRING[10]; The number 10 in the square brackets means that the string can have up to 10 letters, or characters, in it. This program, of course, doesn't do a great deal. Apart from anything else, it prints the same thing every time you run it.
|
PROGRAM text;
{using text variables}
|
At least this program produces different output depending on what you type in. You'll notice that a couple of the instructions used WRITE instead of WRITELN. Can you remember what difference it makes?
|
© 1998 John Brewer |