Basic <-> C | Integer division
Basic
\
Description
par1 \ par2
Input
- par1 - Any integer
- par2 - Any integer
Output
- Result - Integers
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
.
C Used keywords: /
/
Description
par1 / par2
Input
- par1 - Any integer
- par2 - Any integer
Output
- Result - Integers
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
You can find it in the following collections: arithmetic operators
Integer division in another programming language:
Differences to:
Share