O'Reilly logo

Sams Teach Yourself Beginning Programming in 24 Hours, Second Edition by Greg Perry

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required