Notice
Recent Posts
Recent Comments
Creative Code
dice.c (주사위 값 rand함수) 본문
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
for (int i = 1; i<=10; i++){
int num = rand()%6+1;
printf("%d\n",num);
}
return 0;
}
'C Programming' 카테고리의 다른 글
baseball.c(숫자 야구게임) (0) | 2023.08.02 |
---|---|
dice.c(주사위 값 srand함수) (0) | 2023.08.02 |
bubbleSorting.c ( 배열 버블정렬) (0) | 2023.08.02 |
selectionSorting.c (배열 값 정렬) (0) | 2023.08.02 |
swap.c(두 수 바꾸기) (0) | 2023.08.02 |