|
|
back to boardWhat's wrong? My code : ..... #include <iostream> #include <math.h> #include <vector> using namespace std; int main() { vector<double> v1; cout.precision(5); while (cin >> temp){ v1.push_back(sqrt(double(temp))); } for (int i = 1; i <= v1.size(); i++) cout << v1[v1.size()-i]; return 0; } Why I have wrong answer? Edited by author 13.07.2007 03:37 Edited by author 13.07.2007 03:38 Re: What's wrong? every answer in new line |
|
|