#include <stdio.h>
Main()
{
Int a[6];
Int i,j,temp;
{
sran(time(null));
For ( i=1;i<=5;i++)
{
a[6] = rand() %45+1;
For(j=1;j<i;j++)
If(a[i] == a[j])
{
i--;
break ;
}
}
For ( i =0; i < 5; i++)
For(j = i ; j <6; j++)
If ( a[i] > a[j] )
{
temp = a[i] ;
a[i] = a[j];
a[j] = temp;
}
이거 보고 로또 1등 당첨됐습니다
ㄴㅋㅋㅋ srand 보고 눈치챈듯
않이 한번에 이거 분석못하면 코딩 연습을 안한거지..