Question: write in C language Write a function that takes three integers as parameters and prints the smallest and the largest values. If any two of
Write a function that takes three integers as parameters and prints the smallest and the largest values. If any two of the parameters are equal, the function returns 1; otherwise, the function returns 0. The main() then prints the returned value. Submit the whole program. Below are sample outputs. From main: Enter three integers: 4 18 12 From function: Min value: 4 From function: Max value: 18 From main: The function has returned: 0 From main: Enter three integers: 12 12 7 From function: Min value: 7 From function: Max value: 12 From main: The function has returned: 1 From main: Enter three integers: 8 8 8 From function: Min value: 8 From function: Max value: 8 From main: The function has returned: 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
