- iOS 12 Programming for Beginners
- Craig Clayton
- 65字
- 2021-07-02 15:04:52
Creating a variable with an integer (int)
Now, let's create a variable with an int called age and set it to our age (or whatever you want your age to be) by adding the following:
var age = 40
Our program now knows that age is an int. You should see both your name and age in the Results Panel, just like you did previously:
