Skip to content

Commit

Permalink
해달채점-C
Browse files Browse the repository at this point in the history
  • Loading branch information
looosemycoool committed Jun 8, 2024
1 parent 69975d9 commit 214e42e
Show file tree
Hide file tree
Showing 23 changed files with 1 addition and 13 deletions.
5 changes: 1 addition & 4 deletions c/1.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,14 @@
int main() {
int num, reversedNum = 0;


printf("입력\n");
scanf("%d", &num);


while (num != 0) {
reversedNum = reversedNum * 10;
reversedNum = reversedNum + num % 10;
num = num / 10;
}
printf("출력\n%d", reversedNum);
printf("%d", reversedNum);


return 0;
Expand Down
Binary file modified c/1.exe
Binary file not shown.
Binary file modified c/1.out
Binary file not shown.
2 changes: 0 additions & 2 deletions c/2.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
int main() {

int age;

printf("나이를 입력하세요: ");
scanf("%d", &age);

if (age >= 61) {
Expand Down
Binary file modified c/2.exe
Binary file not shown.
Binary file modified c/2.out
Binary file not shown.
2 changes: 0 additions & 2 deletions c/3.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
int main() {
int hour;

printf("시간을 입력해주세요 (0-23): ");
scanf("%d", &hour);

if (hour < 12) {
printf("AM\n");
} else {
Expand Down
Binary file modified c/3.exe
Binary file not shown.
Binary file modified c/3.out
Binary file not shown.
Binary file modified c/4.exe
Binary file not shown.
Binary file modified c/4.out
Binary file not shown.
Binary file modified c/5.exe
Binary file not shown.
Binary file modified c/5.out
Binary file not shown.
1 change: 0 additions & 1 deletion c/6.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
int main() {
char ch;

printf("Enter a character: ");
scanf(" %c", &ch);


Expand Down
Binary file modified c/6.exe
Binary file not shown.
Binary file modified c/6.out
Binary file not shown.
Binary file modified c/7.exe
Binary file not shown.
Binary file modified c/7.out
Binary file not shown.
4 changes: 0 additions & 4 deletions c/8.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ int main() {

printf("%d\n", sum);
printf("%d", factorial);
for (int i = 2; i <= n; i++) {
printf(" * %d", i);
}
printf(")\n");

return 0;
}
Binary file modified c/8.exe
Binary file not shown.
Binary file modified c/8.out
Binary file not shown.
Binary file modified c/9.exe
Binary file not shown.
Binary file modified c/9.out
Binary file not shown.

0 comments on commit 214e42e

Please sign in to comment.