C Program To Find The Largest Of N Numbers

#include<stdio.h>
#include<conio.h>
void main()
{
int n,a,i,l=0;
clrscr();
printf(" How many numbers u have: ");
scanf("%d",&n);
printf("Enter the numbers:\n");
for(i=1;i<=n;i++)
{
scanf("%d",&a);
if(a>l)
l=a;
}
printf("%d",l);


getch();
}
Bhanu Namikaze

Bhanu Namikaze is an Ethical Hacker, Web Developer, Student and Mechanical Engineer. He Enjoys writing articles, Blogging, Solving Errors and Social Networking. Feel Free to let me know any of your concerns about hacking or let me know if you need any more methods on hacking anything. Enjoy Learning

No comments:

Post a Comment