Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main()
- {
- byte[] mb = { 1, 2, 3, 4, 5 };
- for (int i = 0; i < mb.Length; i++)
- {
- Console.WriteLine("element {0} - {1}", i, mb [i]);
- }
- string ch = "ABCDEFG";
- char[] chars = ch.ToCharArray();
- for (int i = 0; i < chars.Length; i++)
- {
- Console.WriteLine("element {0} - {1}", i, chars [i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement