ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1001. Reverse Root

Why Runtime error
Posted by Izazul Haque Saad 17 Jan 2019 01:46
#include<stdio.h>
#include<stdlib.h>
#define x 100000

int main()
{
    long long int n , c=0,i;
    double ar[x] = {};

    while(scanf("%lld",&n)){
        if(n < 0) break;
        ar[c++] = n;
    }

    for(i=c-1; 0<=i; i--){
        printf("%.4lf\n",sqrt(ar[i]));
    }

    return 0;
}