| 
 | 
вернуться в форумI can not format output Wrong Answer #include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std;   void main()         {             int n=0;             int i=1,j;             double number;              float a[140000];
                while (cin)             {
 
                  cin>>number;                 a[i] = sqrt(number);                 n+=1;                 i++;
              }             for (j = n-1; j>=1; j--)             {             printf("%f \n",a[j]);             }     system("pause");         }   Edited by author 13.05.2015 15:57 Re: I can not format output Wrong Answer ive done it ! Its impossible to do this with arrays.. should use vectors  |  
  | 
|