C Program to Find Largest and Smallest Number in an Array
Here is the C program to find the largest and smallest element in a one-dimensional (1-D) array. Output How many elements:5Enter the Array:1 8 12 4 6The largest element is 12The smallest element is 1 Explanation: The program starts by declaring an integer array ‘a’ of size 50 elements, along with integer variables ‘i’, ‘n’, …
C Program to Find Largest and Smallest Number in an Array Read More »
