Write a program that reads a sequence of natural numbers, and prints the square and the square root of each one.
Input consists of a sequence of natural numbers.
For every given number, print in a line its square, and its square root with six digits after the decimal point.
Use the procedure that your programming language already provides to compute square roots.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T10:35:53.766Z
© Jutge.org, 2006–2026.
https://jutge.org