Created
June 8, 2016 21:11
-
-
Save icalik/41ecaf7a2ec9b0bd597b7cda35b34f5c to your computer and use it in GitHub Desktop.
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace matris | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int su; | |
int sa; | |
sa = 10; | |
su = 10; | |
int[,] matris = new int[sa, su]; | |
for (int i = 0; i < sa; i++) | |
{ | |
for (int j = 0; j < su; j++) | |
{ | |
if (i == 0 || i == sa - 1) | |
{ | |
matris[i, j] = 1; | |
} | |
else | |
{ | |
matris[i, j] = 0; | |
} | |
} | |
} | |
for (int i = 0; i < sa; i++) | |
{ | |
for (int j = 0; j < su; j++) | |
{ | |
Console.Write(matris[i, j]); | |
} | |
Console.WriteLine(); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment