Page 1 of 1

- asks the user to input 3 positive integers - checks if the 3 integers form a triangle -if they form a triangle, what k

Posted: Fri Jul 08, 2022 6:43 am
by answerhappygod
- asks the user to input 3 positive integers
- checks if the 3 integers form a triangle
-if they form a triangle, what kind of triangle is it? (right triangle, acute, or obtuse)
- if they form an isosceles, equilateral, or scalene
test the program with the test trials given below:
Asks The User To Input 3 Positive Integers Checks If The 3 Integers Form A Triangle If They Form A Triangle What K 1
Asks The User To Input 3 Positive Integers Checks If The 3 Integers Form A Triangle If They Form A Triangle What K 1 (20.76 KiB) Viewed 41 times
(12%) Write a C# program that prompts for 3 positive integer inputs and then check (a) if these 3 form a triangle, (b) if they form a triangle, what kind of triangle is that: right angle triangle, acute triangle (all three angles <90 degrees), or obtuse triangle (one of the three angles is greater than 90 degrees). (c) if they form an isosceles triangle (i.e., two sides are equal), or equilateral triangle (all three sides are equal). I Test your program with triplets like (3, 4, 5), (1, 1, 1), and (1, 1, 2) etc.