Home   Easy-Code    Forum  Updater 
Twitter Facebook



Program to find the biggest of the given numbers using c

Critics Rating:

Users Rating:

    /* PROGRAM TO FIND THE BIGGEST OF THE GIVEN NUMBERS */

#include <stdio.h>

main()

{

int a[30],big=0,n;

register int i;

clrscr();

printf("HOW MANY NUMBERS YOU WANT TO ENTER\n");

scanf("%d",&n);

printf("ENTER %d NUMBERS\n",n);

for (i=0;i
scanf("%d",&a[i]);

for (i=0;i
{

if (big
big=a[i];

}

printf("THE BIGGEST ELEMENT IS %d",big);

getch();

}







Courtesy, Source, References & Regards: Kishore AVGK

While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright@2009-2011 by KuGuNi.com. All Rights Reserved.