#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(); }
C Program To Find The Largest Of N Numbers
January 02, 2015
By:
Bhanu Namikaze
Bhanu Namikaze
Bhanu Namikaze is an Penetration Tester, Red Teamer, Ethical Hacker, Blogger, Web Developer and a Mechanical Engineer. He Enjoys writing articles, Blogging, Debugging Errors and CTFs. Enjoy Learning; There is Nothing Like Absolute Defeat - Try and try until you Succeed.

No comments:
Post a Comment