Get temp in f, c = 5/9(f-32) Print the result
import java.util.Scanner;
class TempConvert{
public static void main(String[] args) {
int tempInF;
int tempInC;
Scanner myScanner = new Scanner(System.in);
System.out.print("Enter a temperature in Fahrenheit =>");
tempInF = myScanner.nextInt();
tempInC = 5 / 9 * ( tempInF -32) ;
System.out.printf("%d degrees in F is the same as %d degrees in C\n",tempInF, tempInC);
}
}