I have thought hard to find a proper logic to find largest and least of a given set of numbers in C language.I know it is easy to find when only 2 or even 3 are given, but using if...else or else if ladder becomes confusing when more than 3 numbers are given.Is there a better way to do it? Guys please dont mock at me for asking such a noobish question.I'm just starting to learn C and im new to thinking about problems in this manner.Any help here would be great. TIA 
EDIT : I want it without using arrays

EDIT : I want it without using arrays