What Is a Program Statement?by Eric Summers
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.
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.
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.
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.
- computer image by blaine stiger from Fotolia.com