09/21/09 – Program I (Right Angled Triangle)


Prompt the user to enter 3 sides of a triangle. Assume that the sides are positive integers. Determine, if these sides form a right angled triangle. Apply Pythagoras’s Theorem: Square of the hypotenuse is equal to the sum of the squares of the other two sides. In this particular problem, any one of the three sides that the user enters could be the hypotenuse or none of the sides.

My Solution


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: