6GETTING USER INPUT

image

To perform useful tasks or give you useful information, some programs need input from you. For example, in Microsoft Word you enter text, click buttons to make it look good, and enter a filename to save it. In a web browser, you click links or enter a URL or search term to find a web page. In drawing programs, you draw by clicking and dragging the mouse. When you use a program and give it information that helps it do its job, that information is called user input.

Programs need a way to ask users for input, process that input, and respond correctly. Programs that do this are interactive. In this chapter, you’ll make your programs ...

Get Learn to Program with Small Basic 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.