2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Swift 初心者

Posted at

Swiftの基本情報

・行末に;はつかない

・=の意味は右辺のデータを左辺に代入する

・""で囲むと数字であっても文字列扱いになる      
      【例】"500"は文字列 500は数値

varとlet

letは税率や円周率など後から書き換えることができないものに使う。(定数)

varは一度データを入れても、あとでデータを書き替えることができる。(変数)

Int型…整数を扱う
Double型…小数を扱う

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?