C Program to Find the Biggest Number from the given Numbers using Array


SOURCE CODE:
#include<stdio.h>
#include<conio.h>
void main()
{
 int a[5],n,i,big;
 clrscr();
 printf("Enter the total number of values:");
 scanf("%d",&n);
 for(i=0;i<n;i++)
 {
 printf("\nEnter a[%d] : ",i);
 scanf("%d",&a[i]);
 }
 big=a[0];
 for(i=1;i<n;i++)
 {
  if(big<a[i])
  big=a[i];
 }
  printf("\nBiggest Number is %d",big);
  getch();
}
Previous
Next Post »

Still not found what you are looking for? Try again here.