C#練習
問題文
ふりがな非表示
ふりがな表示
(void Start(){
Debug.Log("Hello, World");})
void Start(){
Debug.Log("Hello, World");}
(int age;
age = 30;)
int age;
age = 30;
(int height1 = 160;
float height2 = 160.5f;)
int height1 = 160;
float height2 = 160.5f;
(string name;
name = "yamada tarou";)
string name;
name = "yamada tarou";
(int answer;
answer = 1 + 2;)
int answer;
answer = 1 + 2;
(int answer;
answer = 3 - 4;)
int answer;
answer = 3 - 4;
(int answer;
answer = 5 * 6;)
int answer;
answer = 5 * 6;
(int answer;
answer = 8 / 4;)
int answer;
answer = 8 / 4;
(int answer = 10;
answer += 5;)
int answer = 10;
answer += 5;
(int answer 10;
answer++;)
int answer 10;
answer++;
(if(hp >= 100){ Debug.Log("attack"); }
else{ Debug.Log("defense"); })
if(hp >= 100){ Debug.Log("attack"); }
else{ Debug.Log("defense"); }
(for(int i = 0; i < 5; i++){
Debug.Log(i); })
for(int i = 0; i < 5; i++){
Debug.Log(i); }
(List<string> fruits = new List<string>();)
List<string> fruits = new List<string>();
(DateTime now = DateTime.Now;)
DateTime now = DateTime.Now;
(int[] numbers = { 1, 2, 3, 4, 5 };)
int[] numbers = { 1, 2, 3, 4, 5 };
(bool isReady = true;)
bool isReady = true;