C <-> Object Pascal | Integer division

C

/

Description

par1 / par2
Used keywords: /

Input


Output

Examples

C

Integer division the possible of use:
x = 250 / 8;       // x=7
y = x / 3;         // y=2
z = (x * 2 / y +5);// z=9

C

Even one example in what situations we can use the operation integer division:
i / 0x0a
27 / 3
(25 / 2 + 1) + 2
.
Object Pascal

div

Description

par1 div par2
Used keywords: div

Input


Output

Examples

Object Pascal

Integer division the possible of use:
x := 250 div 8;       // x=7
y := x div 3;         // y=2
z := (x * 2 div y +5);// z=9

Object Pascal

Even one example in what situations we can use the operation integer division:
i div $0a
27 div 3
(25 div 2 + 1) + 2

You can find it in the following collections: arithmetic operators
Languages: en hu cz sk