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?
3 Respostas
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
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
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 )