- C20250025's blog
上课代码1
- 2023-3-6 15:54:07 @
#include <bits/stdc++.h> using namespace std; int main() { double L=0,R=10; while (R-L>0.0000000000001) { double M=(R+L) /2; if((LL-10)(M*M-10)<0)R=M; else L=M; cout<<fixed<<setprecision(8) <<L<<""<<R<<endl; } return 0; }