Competitions
Week 4: November 30 – December 6. While Loop. Part 1
Perimeter of triangle
The sides of triangle are given. Find the perimeter of triangle.
Input
Consists of multiple tests. Each line contains the lengths of three sides of triangle. The lengths are positive real numbers.
Output
For each test print in a separate line the perimeter of triangle with 4 decimal digits.
Input example #1
6.23 5.123 7.32141 2.12 4 3.012 3 3 3.033
Output example #1
18.6744 9.1320 9.0330