保留三位小数

#include <iostream>

using namespace std;

int main()

{

    double f;

    cin>>f;

    printf("%.3f",f);

    return 0;

}

 

 

 

 

最近有事,好久没更新了。

posted @ 2022-06-27 22:34  明睿小学李君道  阅读(165)  评论(0)    收藏  举报