Determine the largest and smallest integers in a group of three integers. Program requirements: 1. Declare integer variables for the three integers. 2. Prompt the user using printf and read all three integers from the user using scanf. (You can do it one by one, so three prompts in total). 3. Determine which of the three numbers is the smallest and which is the largest using as many if or if...else statements as necessary. 4. Print in the screen the smallest integer using printf. 6. Print in the screen the largest integer using printf. Hint: You can declare integer variables “smallest” and “largest” to keep track as you make comparisons. The following is an example of how your program should look when you execute it: Give me the first integer: 4 Give me the second integer: 3 Give me the third integer: 5 The smallest integer of the group is: 3 The largest integer of the group is: 5 In C please, Thank you

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section4.5: A Case Study: Solving Quadratic Equations
Problem 8E
icon
Related questions
Question

Determine the largest and smallest integers in a group of three integers.

Program requirements:

1. Declare integer variables for the three integers.

2. Prompt the user using printf and read all three integers from the user using scanf. (You can do it one by one, so three prompts in total).

3. Determine which of the three numbers is the smallest and which is the largest using as many if or if...else statements as necessary.

4. Print in the screen the smallest integer using printf.

6. Print in the screen the largest integer using printf.

Hint: You can declare integer variables “smallest” and “largest” to keep track as you make comparisons.

The following is an example of how your program should look when you execute it:

Give me the first integer: 4

Give me the second integer: 3

Give me the third integer: 5

The smallest integer of the group is: 3

The largest integer of the group is: 5

In C please, Thank you

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning