Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Timus 1001
- #include <math.h>
- #include <iostream>
- #include <iomanip>
- #define SIZE 128*1024
- long long int num[SIZE];
- using namespace std;
- int main()
- {
- int n=0;
- long long int cislo;
- while (cin >> cislo)
- {
- num[n] = cislo;
- n++;
- }
- for(int i=n-1;i>=0;i--)
- {
- cout << fixed << setprecision(4) << (double)sqrt(num[i]) << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement