#include<stdio.h>
int cheng(int, int);
int main()
{
int a,b,n=0;
for(n=0;n>=0;n++)
{
printf("input two number:");
scanf("%d%d",&a,&b);
if(a!=0&&b!=0){
printf("result:%d\n",cheng(a,b));
}
else printf("totle times:%d\n",n);
}
return 0;
}
int cheng(int a,int b)
{
int c=0;
c=a*b;
return c;
}
真的是想学习了.