Hour 4 Getting Input and Displaying Output

Input and output are the cornerstones that enable programs to interact with the outside world. In the previous hour, you learned how important the output process is to programming because through output, your program displays information. A program must get some of its data and control from the user’s input, so learning how to get the user’s responses is critical as well.

The highlights of this hour include

• Using Print to display output

• Printing multiple occurrences per line

• Separating output values

• Using variables to hold information

• Using Input to get data

• Prompting for data input

• Sending output to your printer

The Print Statement

In Liberty BASIC, the Print statement outputs data to ...

Get Sams Teach Yourself Beginning Programming in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.