integer division: /, \, div

integer division is a mathematical operation that can be used only for whole numbers. the result of division we get without rounding simply with leave of fraction.

/

Description

par1 / par2
Used keywords: /

Input


Output

compatible programing languages:
C | Visual C++ .NET | C++ | C# | Java

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

C

Other pieces of example codes:
70 / 8
(15123 / 70)
 y = 1025 / 8

\

Description

par1 \ par2

Input


Output

compatible programing languages:
Basic | FreeBASIC | Visual Basic .NET

Examples

Basic

integer division the possible of use:
x = 250 \ 8       ' x=7
y = x \ 3         ' y=2
z = (x * 2 \ y +5)' z=9

Basic

even one example in what situations we can use the operation integer division:
i \ &H0a
27 \ 3
(25 \ 2 + 1) + 2

Basic

Other pieces of example codes:
70 \ 8
(15123 \ 70)

div

Description

par1 div par2
Used keywords: div

Input


Output

compatible programing languages:
Pascal | Object Pascal | Free Pascal

Examples

Example

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

Example

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

Example

Other pieces of example codes:
(15123 div 70)
(1512345 div 70)
70 div 8
 y = 1025 div 8
 y = 10250 div 8

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