Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#include <stdio.

h>
void main()
{
int i,j,n,x;
int **A = new int *[100];
for ( int i = 0; i < 100; ++i )
A[i] = new int [50];
printf("Podaj ilosc wierszy i kolumn macierzy kwadratowej: ");
scanf("%d",&n);
for(i=1;i<=n;i++)
{ for(j=1;j<=n;j++)
{
printf("Podaj A[%d][%d]= ",i,j);
scanf("%d",&A[i][j]);
}
}
for(i=1;i<=n;i++)
{
for(j=1;j<=n;j++)
printf("%d\n",A[i][j]);
}
}

You might also like