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

int main(void)
{
 srand((unsigned) time(NULL));
 printf("대한민국 : 러시아\n");
 printf("%d : %d\n", rand()%5, rand()%5);

 return 0;
}

'프로그래밍언어 > C & CPP' 카테고리의 다른 글

배열  (0) 2014.06.14
함수  (0) 2014.06.14
실습 예제 풀이  (0) 2014.06.14
반복문  (0) 2014.06.07
반복문  (0) 2014.06.07

+ Recent posts