How can I tabulate my output so that the calculations line up with Celsius and Fahrenheit?
Also, how do I display a number like 183.20000000000002
more naturally?
public static void main(String[] args) {
double cel = 0;
double fahrenheit =cel * 1.8+ 32;
int i;
System.out.println();// blank line
System.out.print("Hello ");// output line
System.out.println();
System.out.println("This Program will show temperature conversions from 0-100\nThen in reverse \nCelsius Fahrenheit");
for (i = 0; i <25; i++){
cel =cel+ 4;
fahrenheit =cel * 1.8+ 32;
System.out.println(+ cel + " " + fahrenheit);
}
}