After defining an integer variable, the variable can only store integers, such as: 1, 2, 3, 456, etc. Values ??containing decimals and strings cannot be stored in integer variables.
Define integer variable i
can be written as
int
i
=
< p>10;In this way, the value of variable i is an integer 10;