I am creating a table that will convert ferinheight to celsius. I do not get any errors but the celsius column only prints out 0.0, while the ferinheight table prints from 90-110, which I want. Im not sure why the equation is not printing out. Any help is greatly appreciated thank you!
import java.util.Scanner;
public class Lab5{
public static void main(String [] args){
Scanner scan = new Scanner(System.in);
System.out.println("What is your first name?");
String name= scan.nextLine();
System.out.println("What is your last name?");
String name2= scan.nextLine();
String fullname = name +" "+ name2;
System.out.println("What country are you from?");
String country= scan.nextLine();
System.out.println(" ");
System.out.println("Dear, " + fullname);
System.out.println(" ");
System.out.println("Welcome to the sunny city of El Paso. We realize that in " + country + ", ");
System.out.println("you are not accustomed to degrees Fahrenheit (F). To help you, ");
System.out.println("we are providing you with conversion to Celsius (C):");
int start = 90;
final int end = 110;
System.out.println(" ");
System.out.println("F \t C");
System.out.println("--------------");
while (start <= end)
{
double celsius = (5/9) * (start - 32);
System.out.println(start + "\t" + celsius);
start++;
}
System.out.println(" ");
System.out.println("Enjoy our beautiful city!");
}
}