S001-AC.cc
286 Bytes
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
double n;
while(1)
{
cin >> n;
if(cin.eof())
{
return 0;
}
cout << n*n << " ";
cout << fixed << setprecision(6) << sqrt(n);
cout << setprecision(0) << endl;
}
return 0;
}