x Turn on thread page Beta
 You are Here: Home >< Maths

# Fortran programming - help!!! watch

1. So i've been set this task as part of revision and have no idea how to go about finishing it:

Write a program to accept three (INTEGER) lengths and report back on whether these
lengths could define an equilateral, isosceles or scalene triangle with 3, 2 or 0 equal length
sides, or whether they cannot form a triangle.

Hint: If three lengths form a triangle then 2 times the longest side must be less than the sum
of all three sides. In Fortran terms, the following must be true for a valid triangle:
(2*MAX( side1 , side2 , side3 ) < side1 + side2 + side3 ).

I have attached what i have done so far as an image.

any help is hugely hugely appreciated!

thank you
Attached Images

2. So what's the problem? You don't know fortran or you don't know understand what you want your code to do?

Ps. posting pictures of code listings angers the dragons.

TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

This forum is supported by:
Updated: March 5, 2013
Today on TSR

### Boyfriend slept with someone else

...we were on a break

Poll
Useful resources

### Maths Forum posting guidelines

Not sure where to post? Read the updated guidelines here

### How to use LaTex

Writing equations the easy way

### Study habits of A* students

Top tips from students who have already aced their exams