// Author: Irena Pevac // Converts farhenheit into celsius // prints range of values for farhenheit from 97 to 106.9 with step 0.1 import java.text.*; public class Farhenheit { public static void main( String[] args) { double f = 97.00001; double c; System.out.println("Farhenheit"+ "\tCelsius"); DecimalFormat fmt = new DecimalFormat("0.#"); for (int i=0; i<100; i++) { c=(f-32)/9*5; System.out.print(fmt.format(f)); System.out.println("\t\t" +fmt.format(c)); f=f+0.1; } } }