Skip to content

Instantly share code, notes, and snippets.

@icalik
Created June 8, 2016 21:11
Show Gist options
  • Save icalik/41ecaf7a2ec9b0bd597b7cda35b34f5c to your computer and use it in GitHub Desktop.
Save icalik/41ecaf7a2ec9b0bd597b7cda35b34f5c to your computer and use it in GitHub Desktop.
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