Skip to content

Commit

Permalink
해달 채점 - c
Browse files Browse the repository at this point in the history
  • Loading branch information
looosemycoool committed Mar 20, 2024
1 parent 620eaa9 commit b1514f5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion c/1.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,20 @@
#include <stdio.h>

int main() {
// 이곳에 코드를 작성해주세요!
int num, reversed;


scanf("%d", &num);

while(num!=0)
{
reversed = reversed*10;
reversed = reversed = num%10;
num /= 10;
}

printf("%d",reversed);


return 0;
}
Binary file added c/1.exe
Binary file not shown.

0 comments on commit b1514f5

Please sign in to comment.