title: Program to find largest and smallest among 5 numbers without using array
body: <p>Yesterday I went for an interview where I have been asked to create a program to find largest and smallest among 5 numbers without using array. </p>
  
  <p>I know how to create the program using array.</p>
  
  <pre><code>int largestNumber;
  int smallestNumber;
  int numbers[n];
  
  largestNumber=numbers[0];
  smallestNumber=numbers[0];
  for (i=0 ; i&lt;n; i++)
  {
  if (numbers[i] &gt; largestNumber) 
  {
  largest = numbers[i];
  }
  if (numbers[i] &lt; smallestNumber) 
  {
  smallestNumber= numbers[i];
  }
  }
  </code></pre>
  
  <p>But how to create it without using array. Any help??</p>