#include <iostream> #include <iomanip>//必要头文件 using namespace std; int main(int argc, char** argv) { double a,b,c; double n; cin>>a>>b>>c; n=(a/b)*c; cout<<fixed<<setprecision(6)<<n<<endl; return 0; }
标签:int,double,c++,示范,include,小数 From: https://www.cnblogs.com/wangyueshuo/p/17378189.html