山东智趣岛论坛

标题: ti1003 [打印本页]

作者: liuzixuan    时间: 2023-12-9 09:33
标题: ti1003
[C++] 纯文本查看 复制代码
#include<stdio.h>
using namespace std;
int main(){
        float a,s;
        a=((150*2/15)*(15+25))/2;
        s=float(a);
//        cout<<setprecion(2)<<s;
       
        printf("%.2f",s);
}






欢迎光临 山东智趣岛论坛 (https://abc.sdzqd.com/) Powered by Discuz! X3.3