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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 39 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply