Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Threading;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace MyFirstProgram
- {
- class Program
- {
- static void Main(string[] args)
- {
- int[,] array = { { 1, 3, 5, 7 },{ 2, 4, 6, 8 } };
- PrintArray(array);
- }
- static void PrintArray(int[,] array)
- {
- for(int i = 0; i < array.GetLength(0); i++ )
- {
- for (int j = 0; j < array.GetLength(1); j++)
- Console.Write(array[i,j]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement