|
|
back to boardhelp why is wrong #include<iostream> #include <stdio.h> using namespace std; int main(){ freopen("in.txt", "r", stdin); int i = 0; double mas[9310]; cin >> mas[i]; while(mas[i]>=0) { i++; cin >> mas[i]; } for(int k = i-1; k>=0; k--) printf("%.4lf\n",sqrt(mas[k])); } Re: help why is wrong Posted by Margar 20 May 2012 22:36 #include <math.h> |
|
|