# C Program to find smallest of n numberswithoutusingArray

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

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

### Smallest of n numbers Program

#include<stdio.h>
int main(){
int n, s1, s2, z;
printf(" How many Integer numbers : ");
scanf("%d", &n);
z=n;
if(n>0){
printf("\n Enter the First number : ");
scanf("%d", &s1);
n--;
if(n>0){
for(;n>=1; n--){
printf("\n Enter the next number : ");
scanf("%d", &s2);
if(s1>s2)
s1=s2;
}
}
}
printf("\n The Smallest of %d numbers is %d", z, s1);
return(0);
}

Sample Output:

How many Integer numbers : 7
Enter the First number : 47
Enter the next number : 43
Enter the next number : 87
Enter the next number : 23
Enter the next number : 7
Enter the next number : -72
Enter the next number : 57

The Smallest of 7 numbers is -72