#include <stdio.h>
void main()
{
int low=0, high=4, mid;
int i,j;
int arr[5];
printf("請輸入5個整數: \n");
for(i=0; i<5; i++)
{
scanf("%d\n",&a[i]);
}
printf("請輸入你要查找的數: \n");
scanf("%d",&j);
while(low<=high)
{
mid=(low+high)/2;
if(j==a[mid]);
{
break;
}
else if (j<a[mid])
high=mid-1;
}
else low=mid+1;
printf("%d",mid);
}
幫我看一下錯在哪裡啊
括號括錯了。