---
title: "Компьютер экранында 1 0 0 0 0 1 1 0 0 0 1 1 1 0 0 1 1 1 1 0 1 1 1 1 1 квадрат матрицаны алу керек."
description: "#include <stdio.h> #include <conio.h> #define nmax 100 void main() { int a[nmax][nmax]; ..."
author: "dan_ntu"
published: "2014-11-06T01:23:04+00:00"
modified: "2014-11-06T01:23:20+00:00"
locale: "ru"
canonical_url: "https://yvision.kz/post/kompyuter-ekranynda-1-0-0-0-0-1-1-0-0-0-1-1-1-0-0-1-1-1-1-0-1-1-1-1-1-kvadrat-matricany-alu-kerek-437955"
markdown_url: "https://yvision.kz/post/kompyuter-ekranynda-1-0-0-0-0-1-1-0-0-0-1-1-1-0-0-1-1-1-1-0-1-1-1-1-1-kvadrat-matricany-alu-kerek-437955/markdown"
site_name: "Yvision.kz"
---

# Компьютер экранында 1 0 0 0 0 1 1 0 0 0 1 1 1 0 0 1 1 1 1 0 1 1 1 1 1 квадрат матрицаны алу керек.

> #include <stdio.h> #include <conio.h> #define nmax 100 void main() { int a[nmax][nmax]; ...

#include

#include

#define nmax 100

void main()

{

int a[nmax][nmax];

int i,j,n,s=0;

clrscr();

printf("n manin engiz->");

scanf("%d",&n);

for (i=0;i=j) a[i][j]=1; else a[i][j]=0;

}

}

printf("\nOndelgen massiv \n");

for (i=0;i<n;i++){

for (j=0;j<n;j++){

printf("a[%d][%d]=%d ",i,j,a[i][j]);

}

printf("\n");

}

getch();

}

---

Source: [https://yvision.kz/post/kompyuter-ekranynda-1-0-0-0-0-1-1-0-0-0-1-1-1-0-0-1-1-1-1-0-1-1-1-1-1-kvadrat-matricany-alu-kerek-437955](https://yvision.kz/post/kompyuter-ekranynda-1-0-0-0-0-1-1-0-0-0-1-1-1-0-0-1-1-1-1-0-1-1-1-1-1-kvadrat-matricany-alu-kerek-437955)