title: How to find minimum and maximum values from user input without functions
body: <p><strong>Code</strong></p>
  
  <pre><code>sum = 0
  negCount = 0
  evenCount = 0
  ynResponse = 'y'
  
  while ynResponse == 'y' or ynResponse == 'Y':
      val = float(input('Please enter a value to be processed: '))
      count = count + 1
      sum = sum + val
      if val &lt; 0:
          negCount = negCount + 1
      if val % 2 == 0:
          evenCount = evenCount + 1
      ynResponse = input('Do you have another value to be processed?: ')
  
  print('The number of values entered: ', count)
  print('The sum of values entered: ', sum)
  print('The average of values entered: ', sum/count)
  print('The smallest value entered: ', min)
  print('The largest value entered: ', max)
  print('The number of negative values: ', negCount)
  print('The number of even values: ', evenCount)
  </code></pre>
  
  <p><strong>Output should look like this</strong></p>
  
  <p>Enter a value to be processed: 10.4</p>
  
  <p>Do you have another value to be processed? (y/n): y </p>
  
  <p>Enter a value to be processed: -41.2</p>
  
  <p>Do you have another value to be processed? (y/n): y </p>
  
  <p>Enter a value to be processed: 0</p>
  
  <p>Do you have another value to be processed? (y/n): y </p>
  
  <p>Enter a value to be processed: 7.0</p>
  
  <p>Do you have another value to be processed? (y/n): y </p>
  
  <p>Enter a value to be processed: 55.5</p>
  
  <p>Do you have another value to be processed? (y/n): y </p>
  
  <p>Enter a value to be processed: 14</p>
  
  <p>Do you have another value to be processed? (y/n): y </p>
  
  <p>Enter a value to be processed: -4</p>
  
  <p>Do you have another value to be processed? (y/n): n</p>
  
  <p>The number of input values: 7</p>
  
  <p>The sum of the input values: 41.699999999999996</p>
  
  <p>The average of the input values entered: 5.957142857142856</p>
  
  <p>The largest value entered: 55.5</p>
  
  <p>The smallest value entered: -41.2</p>
  
  <p>The number of negative values: 2</p>
  
  <p>The number of even numbers: 3</p>