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



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
 
int main(void)
{
    double light_speed = 300000;    // ºûÀÇ ¼Óµµ¸¦ ÀúÀåÇϴ º¯¼ö(300000km/sec)
    double distance = 149600000;    // Å¾ç°ú Áö±¸ »çÀÌ °Å¸®¸¦ ÀúÀåÇϴ º¯¼ö
                                    // 149600000km·Î ÃʱâÈ­ÇÑ´Ù.
    double time;            // ½Ã°£À» ³ªÅ¸³»´Â º¯¼ö
 
    time = distance / light_speed;  // °Å¸®¸¦ ºûÀÇ ¼Óµµ·Î ³ª´«´Ù.
    time = time / 60.0;     // Ãʸ¦ ºÐÀ¸·Î º¯È¯ÇÑ´Ù.
 
    printf("ºûÀÇ ¼Óµµ´Â %lfkm/s \n", light_speed);
    printf("žç°ú Áö±¸¿ÍÀÇ °Å¸® %lfkm \n", distance);
    printf("µµ´Þ ½Ã°£Àº %lfÃÊ\n", time);    // ½Ã°£À» Ãâ·ÂÇÑ´Ù.
 
    return 0;
}
cs

  µî·ÏÀÏ : 2022-02-21 [22:42] Á¶È¸ : 1496 ´Ù¿î : 0   
 
¡â ÀÌÀü±Ûtemperature.c (±³Àç)
¡ä ´ÙÀ½±Ûfloat_error.c (±³Àç)
ÇÁ·Î±×·¡¹Ö¾ð¾î ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ Á¶È¸ µî·ÏÀÏ
lMini Project (¾îµåº¥Ã³ °ÔÀÓ ¸¸µé±â) Ãß°¡ ±¸Çö // ¡Ú¡Ú¡Ú ±â¸»°úÁ¦ °ÔÀÓ±¸Çö ½Ã Âü°í
l½Ç½À ¸ñÂ÷
41 ¦¦❶ lescape.c (±³Àç) 1740 02-21
40 ¦¦❶ lget_ascii.c (±³Àç) 1604 02-21
39 ¦¦❶ lchar_var.c (±³Àç) 1669 02-21
38    ¦¦❷ lchar_var1.c (±³Àç) 1675 02-21
37       ¦¦❸ char_var1.c (Ãß°¡) ¹®ÀÚ¸¦ 8, 10, 16Áø¼ö·Î Ç¥Çö 1563 03-20
36          ¦¦❹ char_var1.c (Ãß°¡) 0~9 ¹®ÀÚ¸¦ ¼ýÀÚ·Î ¹Ù²Ù±â 1549 03-20
35 ¦¦❶ lcircle_area.c (±³Àç) 1822 02-21
34 ¦¦❶ ltemperature.c (±³Àç) 1658 02-21
33 ¦¦❶ lsunlight.c (±³Àç) 1496 02-21
32 ¦¦❶ lfloat_error.c (±³Àç) 1564 02-21
31 ¦¦❶ lover_under.c (±³Àç) 1418 02-21
30 ¦¦❶ lfloating.c (±³Àç) 1482 02-21
29 ¦¦❶ lswap.c (±³Àç) 1623 02-21
28    ¦¦❷ swap.c (Ãß°¡) ´Ü¼ø±³È¯ÇÏ¸é ¾È µÇ´Â ¿¹ 1316 03-20
27 ¦¦❶ lproperty.c (±³Àç) 1443 02-21
26 ¦¦❶ ldollar2won.c (±³Àç) 1657 02-21
25 ¦¦❶ lint_const.c (±³Àç) 1322 02-21
24 ¦¦❶ loverflow.c (±³Àç) 1642 02-21
23    ¦¦❷ overflow.c (Ãß°¡) integer ¿À¹öÇ÷οì 1304 03-20
22 (2Àå) ±âÃÊ»çÇ× 1044 02-18

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