Á¤¼ºÈÆ
    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] Á¶È¸ : 1552 ´Ù¿î : 0   
 
¡â ÀÌÀü±Ûcontinue.c (±³Àç)
¡ä ´ÙÀ½±Ûgugu_tot.c (±³Àç)
ÇÁ·Î±×·¡¹Ö¾ð¾î ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ Á¶È¸ µî·ÏÀÏ
lMini Project (¾îµåº¥Ã³ °ÔÀÓ ¸¸µé±â) Ãß°¡ ±¸Çö // ¡Ú¡Ú¡Ú ±â¸»°úÁ¦ °ÔÀÓ±¸Çö ½Ã Âü°í
l½Ç½À ¸ñÂ÷
141 ¦¦❶ lscore2.c (±³Àç) 1498 02-22
140 ¦¦❶ lcode.c (±³Àç) 1416 02-22
139 ¦¦❶ lscore1.c (±³Àç) 1981 02-22
138 (6Àå) ¹Ýº¹¹® 1266 02-22
137 ¦¦❶ Mini Project (NIM °ÔÀÓ) 1409 03-26
136    ¦¦❷ Mini Project (NIM °ÔÀÓ) (¸ð¹ü ´ä¾È) 1501 03-26
135 ¦¦❶ ¨ÕÃß°¡ µµÀü ¹®Á¦ 1 266 04-18
134    ¦¦❷ Ãß°¡ µµÀü ¹®Á¦ 1 (¸ð¹ü ´ä¾È) 297 04-18
133 ¦¦❶ lcalc_pi.c (±³Àç) 1793 02-22
132 ¦¦❶ lget_prime.c (±³Àç) 1620 02-22
131 ¦¦❶ lmath.c (±³Àç) 1560 02-22
130 ¦¦❶ lcontinue.c (±³Àç) 1582 02-22
129 ¦¦❶ lbreak.c (±³Àç) 1552 02-22
128 ¦¦❶ lgugu_tot.c (±³Àç) 1606 02-22
127 ¦¦❶ lnest_loop2.c (±³Àç) 1639 02-22
126    ¦¦❷ draw_box.c (Çлý Ç®ÀÌ) Á¤»ï°¢Çü ¸¸µé±â 729 03-20
125       ¦¦❸ draw_box.c (Çлý Ç®ÀÌ) Á¤»ï°¢Çü ¸¸µé±â (¸ð¹ü ´ä¾È) 1245 03-20
124    ¦¦❷ draw_box.c (Çлý Ç®ÀÌ) Á÷°¢ »ï°¢Çü ¸¸µé±â 834 03-20
123       ¦¦❸ draw_box.c (Çлý Ç®ÀÌ) Á÷°¢ »ï°¢Çü ¸¸µé±â (¸ð¹ü ´ä¾È) 1218 03-20
122 ¦¦❶ lharmony.c (±³Àç) 1639 02-22

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