Question: in C not C++ Exercise 1 Exercise Objectives Using simple input and output statements Using selection structure Using logical operators Problem Description Write a C
Exercise 1 Exercise Objectives Using simple input and output statements Using selection structure Using logical operators Problem Description Write a C program that: Prompts the user to input 6 numbers Reads in the 6 numbers Finds and Prints the smallest number Finds and Prints the largest number Finds and prints the second largest number Add your name, your University ID number and section number as a comment in this program. Sample output : Enter 6 numbers: 7 18 19 25 -5 6 The smallest number is: -5 The largest number is : 25 The second largest number is: 19
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
