diff --git a/c/1.c b/c/1.c index 002ef44..0aaea84 100644 --- a/c/1.c +++ b/c/1.c @@ -6,7 +6,20 @@ #include 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; } \ No newline at end of file diff --git a/c/1.exe b/c/1.exe new file mode 100644 index 0000000..a923302 Binary files /dev/null and b/c/1.exe differ