#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
int i,j,a,b;double c;
while(scanf("%d%d",&a,&b)!=EOF)
{if(a==0&&b==0)
break;
c=a;
for(i=a-1;i>=a-b+1;i--)
{c=c*i;
}
for(i=1;i<=b;i++)
c=c/i;
printf("%d things taken %d at a time is %.0lf exactly.\n",a,b,c);
}
return 0;
}
哪錯了