0

Can someone help?

So Iā€™m trying to code a program in c# that allows a user to input 3 lengths for the sides of a triangle and then depending on the input it will output if it is scalene, isosceles or equilateral. Iā€™m very new to coding and have no idea where to start, can someone please help?

26th Apr 2018, 7:42 PM
Jake Schuchart
Jake Schuchart - avatar
3 Answers
0
1) get user inputs and store they 2) compare stored value and.. ... if all 3 are equals triangle is equilater ... if only 2 of 3 are equals triangle is isoscele ... else triangle is scalene
26th Apr 2018, 7:54 PM
KrOW
KrOW - avatar
0
The issue Iā€™m having is trying to figure out how to get user inputs, I have the basic idea of how to do if/else statements once I get past the input part
26th Apr 2018, 8:33 PM
Jake Schuchart
Jake Schuchart - avatar
0
ok... I dont know C# but a fast search allow me that: - For get input line you can use Console.ReadLine - for convert from string to int you can use Int32.parse (i have assumed int how data type )
26th Apr 2018, 8:56 PM
KrOW
KrOW - avatar