Triangles with the same perimeter

Calculates the number of triangles with the same perimeter.

Input: Perimeter
Output: Number of Triangles

Input




Output

Perimeter: 14
Number of Triangles: 4
Triangles:
6,6,2
6,5,3
6,4,4
5,5,4

This entry was posted in Projects. Bookmark the permalink.