title: How to Create a Loop to add increments of ten to user input and math conversion
body: <p>Need help printing the list of temperatures in Fahrenheit and the corresponding
  temperatures in Celsius. The list is supposed to start from the initial temperature provided and increases by 10 degrees of Fahrenheit for each successive pair. It stops after 20 pairs are printed.</p>
  
  <p>I need help making the loop. I can't figure it out past just the user inputting Fahrenheit, it going through the conversion and printing out on one line. </p>
  
  <pre><code>import java.text.DecimalFormat;
  import java.util.Scanner;
  
  public class Temperatures {
  
      public static void main(String[] args) {
  
          double fahrenheit;
          double celsius;
  
          Scanner scan = new Scanner(System.in);
  
          System.out.println("Please enter a valid number between -459 and 212 degrees:");
          fahrenheit = scan.nextInt();
          while (fahrenheit &lt;= -459 || fahrenheit &gt;= 212) {
              fahrenheit = scan.nextInt();
          }
  
          DecimalFormat fmt = new DecimalFormat("#.##");
  
  
          celsius = (((fahrenheit - 32) * 5));
  
          System.out.print("fahrenheit:  " + fahrenheit +  "     celsius:  " + fmt.format(celsius));
      }
  }
  </code></pre>