Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Program {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- double f,c;
- Scanner sc = new Scanner(System.in);
- System.out.println("Enter a temperature in Degrees Fehrenheit");
- f = sc.nextDouble();
- c = (f - 32)*5/9;
- System.out.println("That's " + c + " degrees Celsius.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement