This commit is contained in:
암냥 2026-04-08 16:02:20 +09:00
commit d42448a9d0
No known key found for this signature in database
13 changed files with 187 additions and 0 deletions

12
03/ex02.c Normal file
View file

@ -0,0 +1,12 @@
#include <stdio.h>
int main() {
int n;
printf("정수 n입력(0≤n<1000) : ");
scanf("%d", &n);
printf("%d의\n", n);
printf("100의 자리수 : %d\n", n / 100);
printf("10의 자리수 : %d\n", (n / 10) % 10);
printf("1의 자리수 : %d\n", n % 10);
return 0;
}