NMW13
2022-09-03 20:49
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
const double a;
a* a = 5;
cout << "黄金分割比=" << fixed << setprecision(14) << a / 2 - 1 / 2 << endl;
return 0;
}
我怎么感觉应该是a=sqrt(5)呢
这个运算处理不错呀
趣味 C++ 入门
31202 学习 · 189 问题
相似问题