Computing square roots and squares

Write a program that reads a sequence of natural numbers, and prints the
square and the square root of each one.

Input

Input consists of a sequence of natural numbers.

Output

For every given number, print in a line its square, and its square root
with six digits after the decimal point.

Observation

Use the procedure that your programming language already provides to
compute square roots.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T10:35:53.766Z

© Jutge.org, 2006–2026.
https://jutge.org
