|
|
back to boardPlease help !! c++ Posted by Daniel 25 Oct 2011 15:16 #include <iostream> #include <cmath> #include <iomanip> #include <stdio.h> using namespace std; int main() { int i=0; float A[256*1024/2]; do { cin>>A[i];
if ( A[i]>=0 && A[i]<= pow(float(10),18) ) { std::cout.precision(4); std::cout<<fixed<<sqrt(A[i]); } else
i++; } while(i<(256*1024/2)); return 0; } Edited by author 25.10.2011 15:16 Re: Please help !! c++ Posted by MaximG. 25 Oct 2011 22:33 |
|
|