-
-
Save todorok1/bd5f4939e4f6b18389557486bee3580d to your computer and use it in GitHub Desktop.
C#のListを使ってforeach文を作るサンプル
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
// int型のリストを確認します。 | |
List<int> numList = new List<int>(){8, 13, 14, 19, 26, 58}; | |
foreach (int num in numList) | |
{ | |
// なんらかの処理をするでち。 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment