Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- int count = 0,i;
- long long int number;
- double srt[32001];
- while(1)
- {
- if(scanf("%lld",&number)!=EOF)
- {
- srt[count] = (double)sqrt(number);
- //printf("%lf\n",srt[count]);
- count++;
- continue;
- }
- for(i=(count-1); i>=0; i--)
- {
- printf("%.4lf\n",srt[i]);
- if(i==0)
- return 0;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement