#include<stdio.h>
#include<conio.h>
voidmain()
{
intn,g,s,b;
printf("請輸入三位數整數:");
scanf("%d",&n);
g=n%10;
s=n%100/10;
b=n/100;
printf("個:%d,十:%d,百:%d",g,s,b);
getch();
}
#include<stdio.h>
#include<conio.h>
voidmain()
{
intn,g,s,b;
printf("請輸入三位數整數:");
scanf("%d",&n);
g=n%10;
s=n%100/10;
b=n/100;
printf("個:%d,十:%d,百:%d",g,s,b);
getch();
}