# All programming languages

The most important commands from programming language in one place, a unique comparison and each command-operator is shown using a piece of program. Statements-operators of these sample programs are clickable, so with a simple click we have more information available.## lexical elements

Lexical elements are numeric, string constants and comments in the code.

## types and variables

Types and variables are closely related because variables are the most important elements of our program in which we store data, partial results of our calculations. Types tell us what data can be stored in variables.

## program structure

## operators

Operators perform an operation between the operands, this operation can be mathematical, logical, or bitwise.

## statements

Statements are important elements for writing programs. Generally one statement line corresponds to one line program. The main group of the statements are: cycles, program branching and flow control.

## Example

```
i = x * 5;
while (i>0)
if (i==10)
break;
else
{
i--;
}
```

### Examples

## Example

```
xmin = 0; ymax = 65535;
ushort x=280; // x = 280
ushort y = 1025 % 8; // y = 128
y = (ushort)(x * y); // z = 35840
```

## Example

```
float x = 3.14159265359; // x = 3.14159274
float y = 123456789; // y = 123456792.0
y =(float)(x * y); // z = 387850976.0
```

## Example

Other pieces of example codes:if (i==16) { continue; }

100 - 2

27 div 3

y = 5 & 3

ret = j<i

a && true

programming languages