- 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:
(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.
- asks the user to input 3 positive integers - checks if the 3 integers form a triangle -if they form a triangle, what k
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am