求极限问题
double ch(double a,double b)
{double c;
if(a>b)return(c=(b+ch(a,b))/2);
else return(c=(a+ch(a,b))/2);}
main()
{int a,b,c;
printf("enter the number you want to count :");
scanf("%d%d",&a,&b);
c=ch(a,b);
printf("c=a*b=%d",c);
getch();}
大家帮忙解释下这个程序什么意思啊
编译通过但是结果一闪而过啊