C++ program to Find Smallest and Largest Number in Array

Find Smallest and Largest Number in Array

Here you will get and learn the example code of C++ program to find smallest and largest number in array. First we will create 5 numbers array list by user input, find smallest and largest number using for loop, print the result.

C++ program to Find Smallest and Largest Number in Array

Output

Input 5 Numbers : 2 3 4 1 6

Smallest Number is : 1
Largest Number is : 6

 

 

Check out our other C++ programming Examples

 

 

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top