#include <stdio.h>
int main() {
int Formal = 987;
int Hundred;
int Ten;
int One;
Hundred = Formal / 100;
Ten = (Formal/10)%10;
One = Formal%10;
printf("1000 이하의 정수를 입력하시오:987\n");
printf("입력한 정수는 987입니다.\n");
printf("백의 자리 : %d\n", Hundred);
printf("십의 자리 : %d\n", Ten);
printf("일의 자리 : %d\n", One);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: