From the course: Introduction to Career Skills in Software Development

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Basic statements and expressions

Basic statements and expressions

- Statements are the building blocks of any program. They are the individual actions that you want your program to take. Each statement can be made up of keywords, expressions, and operators. Let's look at them one at a time, starting with operators. Operators are symbols that tell the computer to perform an action with some input. In this table, you can see a partial listing of some operators that should be familiar to you. For example, the plus symbol is used for addition, minus for subtraction, an asterisk or star to represent multiplication, and a forward slash for division. These are known as arithmetic operators, as they take numerical values for their input and perform an arithmetic operation. For example, if we take the following, 10 + 2, what does that equal? 12, correct. (laughs) Let's try another one. 10 / 2 + 3. What does this evaluate to? Yes, it's 8. The result of these operations that break down…

Contents