如何简单用c++表示pi的写法

#include <iostream>
#include <cmath>
using namespace std;
int main()
{
    cout << acos(-1) << endl;  
    return 0;
}

运行结果如下:
在这里插入图片描述

发布了80 篇原创文章 · 获赞 59 · 访问量 4453

猜你喜欢

转载自blog.csdn.net/qq_44458489/article/details/105085101