Hey there! Sign in to join this conversationNew here? Join for free
x Turn on thread page Beta
    • Thread Starter

    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

    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.
How are you feeling about your exams?
Useful resources

Make your revision easier


Maths Forum posting guidelines

Not sure where to post? Read the updated guidelines here


How to use LaTex

Writing equations the easy way

Student revising

Study habits of A* students

Top tips from students who have already aced their exams

Study Planner

Create your own Study Planner

Never miss a deadline again

Polling station sign

Thinking about a maths degree?

Chat with other maths applicants

Can you help? Study help unanswered threads

Groups associated with this forum:

View associated groups

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.