Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 438 Bytes

ex-integer.md

File metadata and controls

25 lines (17 loc) · 438 Bytes

1.2 Declaring an Integer variable

Example Code:

The print() function print the value of myVariable, which is 35.

The data type of myVariable is int. This means that myVariable can store any whole number. Whole numbers are numbers that do not have a decimal point.

void main() {
  int myVariable = 35;
  
  print(myVariable);
}

Example Output:

The result of the application code is shown below:

35