[정올] Language Coder_반복제어문1_자가진단3_code538 (C)
두비니
·2020. 3. 13. 00:36
#include <stdio.h>
int main() {
int a, sum = 0;
while (1) {
printf("number? ");
scanf("%d", &a);
if (a < 0)
printf("negative number\n");
else if (a > 0)
printf("positive integer\n");
else
break;
}
return 0;
}
'Coding_Algorithm > 정올 문제풀이' 카테고리의 다른 글
[정올] Language Coder_반복제어문1_자가진단5_code540 (C/Python) (0) | 2020.03.15 |
---|---|
[정올] Language Coder_반복제어문1_자가진단4_code539 (C) (0) | 2020.03.14 |
[정올] Language Coder_디버깅_형성평가4_code119 (C) (0) | 2020.03.08 |
[정올] Language Coder_반복제어문1_자가진단2_code537 (C) (0) | 2020.03.08 |
[정올] Language Coder_연산자_자가진단7_code524 (C) (0) | 2020.03.08 |