Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 Fahrenheit");
- 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