浮点除法
浮点除法
http://www.nowcoder.com/questionTerminal/e21bfa080e0c449ca7a5a8c2caccfc6e
include<stdio.h>
main()
{int a,b;
double c;
scanf("%d%d",&a,&b);
c=(double)(a)/b;
printf("%.3f",c);}
浮点除法
http://www.nowcoder.com/questionTerminal/e21bfa080e0c449ca7a5a8c2caccfc6e
main()
{int a,b;
double c;
scanf("%d%d",&a,&b);
c=(double)(a)/b;
printf("%.3f",c);}
相关推荐