注意此简单程序的printf函数
时间:2014-02-13 01:21:38
收藏:0
阅读:356
#include <stdio.h> #include <stdlib.h> int main() { double a,b; int c; scanf("%lf%lf%d",&a,&b,&c); printf("%.*f",c,a/b);// 输出小数点后c位 return 0; }
原文:http://www.cnblogs.com/joyclub/p/3546152.html
评论(0)