0
loops and conditions
best practice with algorithms
3 Answers
+ 1
What have you tried so far?
Have you got any idea on an algorithm for how to do it?
+ 1
You seem to have changed your post. It now says nothing about triangles. Do you still want help with that?
I don't know what you're asking with 'best practice for algorithms'.
Just in case you're unsure, an algorithm is just a method or a list of operations to get your result or your solution. For example, if you were tasked with finding a list of prime numbers under 20, you might individually test all those numbers for primality, you might perform a Sieve of Eratostenes, you might find another way to do it. Each way is a different algorithm with differing methods/operations to get what you want.
When I asked you about an idea for an algorithm to find whether a given three numbers create an equilateral, isosceles or scalene triangle (or whether a triangle is even possible), I was asking whether you had any ideas how you would do these things (in a maths language). Once you have the algorithm sorted, I can start to help you with your coding of it.
0
no I dont lknow how to go about algorithms