#include<stdlib.h>
int main()
{
int a,b,c,d,e;
printf("請輸入兩個整數:");
scanf("%d%d",&a,&b);
if(a%b==0)
{
c=a/b;
printf("%d/%d=%d",a,b,c);
scanf("%d%d",&a,&b);
}
else
{
d=a%b;
e=a/b;
printf("%d/%d=,%d,%d",a,b,e,d);
}
return 0;
}
https://github.com/Molunerfinn/PicGo https://github.com/Molunerfinn/PicGo