#include <stdlib.h>
#include <time.h>
int main(void)
{
int i,j;
int loto[7];
srand((int) time(0));
for(i=0;i<7;i++)
{
loto[i] = rand()%45+1;
for(j=0;j<i;j++)
{
if(loto[j] == loto[i])
{
i--;
break;
}
}
}
printf(" \n");
for(i=0;i<6;i++)
printf("%d ",loto[i]);
printf("\n ?%d\n",loto[6]);
system("pause");
return 0;
}