What Is a Program Statement?

by Eric Summers
Program statements are used to provide instructions to a computer program.

Program statements are used to provide instructions to a computer program.

A computer program statement is an instruction for the computer program to perform an action. There are many different types of statements that can be given in a computer program in order to direct the actions the program performs or to control the order that the actions are carried out in.

Function

A program statement tells the computer to do something. This may be as simple as adding two numbers together or as complex as connecting to a server across the Internet.

Types

There are many types of program statements that you may find in a typical computer program. Assignment statements are used to assign a value to a program variable. Flow control statements help direct the order in which statements are performed. Iteration statements instruct the program to repeat a series of statements a specified number of times. These are just a few of the types of statements available to a programmer.

Considerations

There are many different programming languages, and each one has its own acceptable format for programming statements. A program statement that works fine in Java will not necessarily perform the same way in Visual Basic.

About the Author

Eric Summers is a writer and computer professional from Southern Indiana. Summers has been writing for more than 20 years, first as a journalist for his college newspaper, then as a short story writer and blogger for various websites. Summers has several professional certifications, including Comptia Network+ and A+.

Photo Credits

  • photo_camera computer image by blaine stiger from Fotolia.com