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



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#define _CRT_SECURE_NO_WARNINGS
# include <stdio.h>
 
int main(void)
{   
    int i; 
    double number, sum = 0.0;
            
    for (i = 1; i <= 10; i++)
    {   
        printf("%d¹ø° ½Ç¼ö¸¦ ÀÔ·ÂÇϽÿÀ: ", i);
        scanf("%lf"&number);  // doubleÇü ½Ç¼ö´Â %lf¸¦ »ç¿ëÇÑ´Ù.
 
        // »ç¿ëÀÚ°¡ À½¼ö¸¦ ÀÔ·ÂÇϸ頹ݺ¹ ·çÇÁ°¡ Á¾·áµÈ´Ù. 
        if (number < 0.0)
            break;
        sum += number; 
    }
 
    printf("ÇÕ°è = %f", sum);
    return 0;
}
cs

  µî·ÏÀÏ : 2022-02-22 [02:30] Á¶È¸ : 1655 ´Ù¿î : 0   
 
¡â ÀÌÀü±Ûatt_book.c (±³Àç)
¡ä ´ÙÀ½±Ûscore2.c (±³Àç)
ÇÁ·Î±×·¡¹Ö¾ð¾î ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ Á¶È¸ µî·ÏÀÏ
lMini Project (¾îµåº¥Ã³ °ÔÀÓ ¸¸µé±â) Ãß°¡ ±¸Çö // ¡Ú¡Ú¡Ú ±â¸»°úÁ¦ °ÔÀÓ±¸Çö ½Ã Âü°í
l½Ç½À ¸ñÂ÷
141 ¦¦❶ lscore2.c (±³Àç) 1605 02-22
140 ¦¦❶ lcode.c (±³Àç) 1511 02-22
139 ¦¦❶ lscore1.c (±³Àç) 2084 02-22
138 (6Àå) ¹Ýº¹¹® 1335 02-22
137 ¦¦❶ Mini Project (NIM °ÔÀÓ) 1483 03-26
136    ¦¦❷ Mini Project (NIM °ÔÀÓ) (¸ð¹ü ´ä¾È) 1577 03-26
135 ¦¦❶ ¨ÕÃß°¡ µµÀü ¹®Á¦ 1 342 04-18
134    ¦¦❷ Ãß°¡ µµÀü ¹®Á¦ 1 (¸ð¹ü ´ä¾È) 379 04-18
133 ¦¦❶ lcalc_pi.c (±³Àç) 1900 02-22
132 ¦¦❶ lget_prime.c (±³Àç) 1729 02-22
131 ¦¦❶ lmath.c (±³Àç) 1664 02-22
130 ¦¦❶ lcontinue.c (±³Àç) 1680 02-22
129 ¦¦❶ lbreak.c (±³Àç) 1655 02-22
128 ¦¦❶ lgugu_tot.c (±³Àç) 1703 02-22
127 ¦¦❶ lnest_loop2.c (±³Àç) 1745 02-22
126    ¦¦❷ draw_box.c (Çлý Ç®ÀÌ) Á¤»ï°¢Çü ¸¸µé±â 796 03-20
125       ¦¦❸ draw_box.c (Çлý Ç®ÀÌ) Á¤»ï°¢Çü ¸¸µé±â (¸ð¹ü ´ä¾È) 1322 03-20
124    ¦¦❷ draw_box.c (Çлý Ç®ÀÌ) Á÷°¢ »ï°¢Çü ¸¸µé±â 903 03-20
123       ¦¦❸ draw_box.c (Çлý Ç®ÀÌ) Á÷°¢ »ï°¢Çü ¸¸µé±â (¸ð¹ü ´ä¾È) 1303 03-20
122 ¦¦❶ lharmony.c (±³Àç) 1751 02-22

[1][2][3][4][5][6][7][8][9][10]-[Next][15]