|
|
back to board1001. Обратный корень. Wrong answer! Why? Posted by Margar 20 May 2012 23:08 #include <iostream> #include <stdio.h> #include <math.h> using namespace std; int main(void){ double a[300]; unsigned long int n; short int i=0, k=0; while (cin>>n){ k++; a[k]=sqrt((double)n); } for (i=k; i>0; i--){ printf("\n%.4f",a[i]); } return(0); } I don't know where the error =( Edited by author 20.05.2012 23:10 |
|
|