{ int a,b,k;printf("请输入分子分母和百分比的小数位数:\n");scanf("%d%d%d",&a,&b,&k);printf("%d/%d=%.*f%%\n",a,b,k,a*100.0/b);return 0;}