# C Program to findlargest of n numberswithoutusingArray

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

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

### largest (biggest or greatest or highest or maximum) 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 Largest 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 Largest of 7 numbers is 87