#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main()
{
    int n;
    int lotto[6]={0};
    int check=0;
    int number[6]={0};
    int money=10000;
    srand(time(NULL));
    printf(\"1~45까지 로또번호를 입력하세요\\n\");
    for (n=0;n<6;n++)
        {scanf(\"%d\",&number[n]);}
    printf(\"%d,%d,%d,%d,%d,%d\\n\",number[0],number[1],number[2],number[3],number[4],number[5]);
    for (n=0;n<6;n++)
       lotto[n]=rand()%45+1;
       printf(\"%d,%d,%d,%d,%d,%d\\n\",lotto[0],lotto[1],lotto[2],lotto[3],lotto[4],lotto[5]);  
    for(n=0;n<6;n++)
    {if (number[n]=lotto[n]);
       check=check+1;}
printf(\"%d\",check);
}
로또 추첨 프로그램으로

이렇게 만들었는데,

lotto[0]이랑 lotto[1]이 같으면 안되는거니까;

도와주시면 감사요..