int a,b,c,n; cin>>a>>b>>c; n=a+b+c; printf("%.2f\n",n/3); cout<<a*b*c; return 0;
为什么输出的第一个值是0.00呢?
printf("%.2f\n",(float)n/3);