|  | 
|  | 
| вернуться в форум | (C++)  Why runtime error happened? #include <iostream>#include <vector>
 #include <iomanip>
 #include <cmath>
 using namespace std;
 
 int main (){
 double Input=0 ;
 double number[] ;
 int counter=0;
 
 while ( cin >> Input && Input != EOF){
 number[counter] = Input;
 cout << number[counter];
 counter++ ;
 }
 
 for (int i=counter ; i>0; i--){
 cout << setprecision(4) << sqrt (number[counter]) << endl;
 }
 }
 | 
 | 
|