|
|
back to boardWhat's wrong with my code? Че не так ? (C++) Posted by Zalkar 14 Nov 2016 12:35 #include<iostream> #include<iomanip> #include<cmath> using namespace std; int main() { long long n,i=0,c=0; double a[100001]; while(cin>>n){ a[i]=sqrt(n); i++; c++; } for(int i=c-1; i>=0; i--) cout<<fixed<<setprecision(4)<<a[i]<<endl; system("pause"); return 0; } Re: What's wrong with my code? Че не так ? (C++) Posted by German 14 Nov 2016 16:26 The size of the input stream does not exceed 256K |
|
|