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

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

In this program, you will get the program code of c++ program to find smallest and largest number in array.

Here, first we will get the 5 numbers in array as input, find smallest and largest number using for loop, print the result.

Program:

 

Output:

Input 5 Numbers : 2 3 4 1 6

Smallest Number is : 1
Largest Number is : 6

Leave a Comment

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

Scroll to Top