C#言語

C#の基礎

変数


変数の宣言:箱を用意
string s;


値を代入
s=”果物”;


宣言と代入を同時に行う。
string s = “果物”;


int n = 10; 整数
float f = 3.2f; 小数
bool b = true; 真偽