Program No : 16 :

Write a program in C to find biggest of N numbers ?

       program no  :16
purpose : biggest of N numbers using ternary operator etc..

#include <"stdio.h">
#include <"conio.h">

void main()
{
	int input,big=0,loop=1,N;

	scanf("%d",&N);


	while(loop<=N)
	{
		
		scanf("%d",&input);

		big=input>big?input:big;
		
		loop++;

		

	    
	}

	printf("big %d",big);

	getch();
}  


Back