Олимпиадный тренинг

Задача 33649. The perimeter of a rectangle and the length of the diagonal


Задача

Темы: Вывод формулы
Two integers are entered from the keyboard - the sides of the rectangle. Write a program to find its perimeter and the length of the diagonal. Print the perimeter of the rectangle in the first line, and the length of its diagonal in the second line.
 
Example
# Input Output
1 2 13 30
13.152946