# C Program to find smallest of n numbersusingArray

## C Program to find the smallest of n numbers using Array

We can write a C Program to find smallest among n numbers (integers) using Array.   For example:  if we  have given 7 input  numbers as  65, 76, 54, -98, 35, 23, 93, then  the smallest of 7 numbers using Array will be -98. The below given C program will find the smallest (lowest or minimum) of n numbers using Array.  Kindly check out the program to find the smallest (lowest or minimum) of n numbers using Array. The questions to find the smallest (lowest or minimum) of n numbers using Array can be asked as

1). C Program to find smallest element in array in C programming
2). C program to find minimum element in array
3). C Program to find smallest number in an Array
4). C Program to find smallest element from the array
5). C Program to Find minimum element in an Array
6). C Program to Find smallest Element of an Array
7). Finding the smallest number in an array of integers
8). C program to find the smallest integer in a list of integers

### Smallest of n numbers Program using Array

#include<stdio.h>
#include<math.h>
int main(){
int n, z, small, array[20];
printf(" How many Integer numbers : ");
scanf("%d", &n);
z=n;
if(n>0){
printf("\n Enter the numbers one by one : ");
for(;n>=1;n--)
scanf("%d", &array[n]);
small = array[1];
n=z;
for(;n>=1; n--){
if(small > array[n])
small = array[n];
}
}
printf("\n The smallest of %d numbers is %d", z, small);
return(0);
}

Sample Output:

How many Integer numbers : 10
Enter the numbers one by one : 56 93 45 24 95 16 -47 29 99 31
The smallest of 10 numbers is -47