You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
293 B
22 lines
293 B
1 year ago
|
#include<stdio.h>
|
||
|
#include<stdlib.h>
|
||
|
#include<time.h>
|
||
|
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");
|
||
|
}
|
||
|
}
|