// Online C Compiler - Build, Compile and Run your C programs online in your favorite browser
我這一串程式自己跑是沒問題,但只要我傳到測試執行就都是0
// Online C Compiler - Build, Compile and Run your C programs online in your favorite browserinclude
int main()
{
int a,b,anss,ans;
scanf("%d %d",&a,&b);
while(anss){
anss=a%b;
if(anss!=0){
ans=anss;
a=b;
b=anss;
}
}
printf("%d",ans);
return 0;
}我這一串程式自己跑是沒問題,但只要我傳到測試執行就都是0
anss沒有初始化