Last active
February 18, 2018 21:04
-
-
Save donguri9/6461102bfe668efe8149c1135d467828 to your computer and use it in GitHub Desktop.
variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var 変数:型 = 式 //変数を定義するには 'var'という言葉のあとに続けて変数名を記述 | |
var age:Int = 16 //型の宣言、初期値の記述 | |
//var age = 16 型、式は省略可能 | |
age = 20 //varで宣言した場合は数値の変更可能 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment