Á¤¼ºÈÆ
    coin.c (±³Àç)
  http://itsys.hansung.ac.kr/cgi-bin/onlineTest/viewCcoding/onlineCcoding.cgi?source=src/chap05/coin.c



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
 
int main(void)
{   
    printf("µ¿Àü ´øÁö±â °ÔÀÓÀ» ½ÃÀÛÇÕ´Ï´Ù.\n");
    srand(time(NULL));  // ÇöÀ砽ð£À» ³­¼öÀÇ ¾¾¾Ñ°ªÀ¸·Î ÇÑ´Ù.
    
    int coin = rand() % 2;
    if (coin == 0
        printf("¾Õ¸éÀÔ´Ï´Ù.\n"); 
    else
        printf("µÞ¸éÀÔ´Ï´Ù.\n"); 
    return 0;
}   
cs

  µî·ÏÀÏ : 2022-02-22 [00:03] Á¶È¸ : 1890 ´Ù¿î : 0   
 
¡â ÀÌÀü±Ûleap_year.c (±³Àç)
¡ä ´ÙÀ½±Ûcheck_number.c (±³Àç)
ÇÁ·Î±×·¡¹Ö¾ð¾î ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ Á¶È¸ µî·ÏÀÏ
lMini Project (¾îµåº¥Ã³ °ÔÀÓ ¸¸µé±â) Ãß°¡ ±¸Çö // ¡Ú¡Ú¡Ú ±â¸»°úÁ¦ °ÔÀÓ±¸Çö ½Ã Âü°í
l½Ç½À ¸ñÂ÷
81 ¦¦❶ lleap_year.c (±³Àç) 1944 02-22
80 ¦¦❶ lcoin.c (±³Àç) 1890 02-22
79 ¦¦❶ lcheck_number.c (±³Àç) 1810 02-22
78 ¦¦❶ lcondition.c (±³Àç) 1803 02-22
77 ¦¦❶ lif_else3.c (±³Àç) 1948 02-21
76 ¦¦❶ lif_else2.c (±³Àç) 1994 02-21
75 ¦¦❶ lif_else1.c (±³Àç) 1888 02-21
74 (4Àå) ¼ö½Ä°ú ¿¬»êÀÚ 1197 02-21
73 ¦¦❶ Mini Project (º¹¸® °è»ê) 1382 03-14
72    ¦¦❷ Mini Project (º¹¸® °è»ê) (¸ð¹ü ´ä¾È) 1666 03-14
71 ¦¦❶ ¨ÕÃß°¡ µµÀü ¹®Á¦ (BMI °è»ê±â) 337 04-04
70    ¦¦❷ Ãß°¡ µµÀü ¹®Á¦ (BMI °è»ê±â) (¸ð¹ü ´ä¾È) 407 04-04
69 ¦¦❶ µµÀü¹®Á¦ 2) 1394 03-14
68    ¦¦❷ µµÀü¹®Á¦ 2) (¸ð¹ü ´ä¾È) 1632 03-14
67 ¦¦❶ µµÀü¹®Á¦ 1) 1188 03-14
66    ¦¦❷ µµÀü¹®Á¦ 1) (¸ð¹ü ´ä¾È) 1578 03-14
65 ¦¦❶ lcal_quad_eq.c (±³Àç) 1969 02-21
64 ¦¦❶ ltypecast.c (±³Àç) 1896 02-21
63 ¦¦❶ lprec.c (±³Àç) 2040 02-21
62 ¦¦❶ lbit_operator.c (±³Àç) 2045 02-21

[1] [Prev]-[11][12][13][14][15]