scg9767   2년 전

#include

int main() {

int a=1,b=1;

while(a!=0 && b!=0){

scanf("%d%d",&a,&b);

if (a>b){

if (a%b==0)

printf("multiple\n");

else

printf("neither\n");

}

else{

if (b%a==0)

printf("factor\n");

else

printf("neither\n");

}

}

return 0;

}

scg9767   2년 전

감사합니다! 제 코드는 왜 오류가 났었던 걸까요..

댓글을 작성하려면 로그인해야 합니다.