Blame view

P38045_en/S001-AC.cc 286 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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;
}