diff --git a/matrix.c b/matrix.c new file mode 100644 index 0000000..4f74466 --- /dev/null +++ b/matrix.c @@ -0,0 +1,21 @@ +#include +#include +#include +int main() +{ + int a[9][9]; + int i,j; + srand(time(NULL)); + for(i=0;i<=8;i++) + { + for(j=0;j<=8;j++) + { + a[i][j]=rand()%10; + if(a[i][j]!=0) + printf("%d ",a[i][j]); + else + printf(". "); + } + printf("\n"); + } +}