Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 프로젝트 목록 제거
- AWS Discovery Book
- 미리 컴파일된 헤더 사용안함
- 전처리기 정의
- 유니티
- round()함수
- 소스코드 하이라이팅
- C언어
- 두 값 교체하기
- Logic Gates
- scanf 오류
- Axes
- Unity
- ASCII CODE TABLE
- 극장 예약 프로그램
- 논리 게이트
- 기호 상수
- 유니티허브
- C 언어
- 난수 값 맞추기 게임
- 반사 벡터
- UnityHub
- 키입력값 받기
- 개인 정리
- 2차원 배열
- 배열 사용X
- 문자 분류
- time.h
- GetAxis()메서드
- 두 수 크기 비교 함수
Archives
- Today
- Total
목록난수 값 맞추기 게임 (1)
flrto
C 언어 난수 값 맞추기 게임
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 #include #include #include int main(void) { srand(time(NULL)); int rand_num = 0; int input_num = 0; int count = 1; rand_num = rand();//32000 while (1) { scanf("%d", &input_num); if (rand_num > input_num) { printf("제시한 정수가 낮습니다.\n", rand_num); } else if (rand_num
C/Academy
2019. 6. 13. 20:30