Report1 2011, Feb 05 #include <iostream> #include <fstream> #include <cmath> #include <iomanip> using namespace std;</p> int main(void) { double x; cout<<"X : "; cin>>x; int cound =0; double value1; double value2; cout.setf(ios::fixed);//소수점 고정 cout.precision(20);// 소수점 몇자리 까지; cout <<setw(3) <<" index "<<setw(25)<<" value1 " <<setw(25)<<" value2 "<<setw(25)<<endl; value1 = sqrt(x+1)-sqrt(x); value2 = 1/(sqrt(x+1)+sqrt(x)); cout <<setw(3) <<1<<setw(25)<<value1<<setw(25)<<value2<<setw(25)<<endl; getc(stdin); return 0; } </textarea> Please enable JavaScript to view the comments powered by Disqus.