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 o temperature in Degrees Fahrenheit");
- f = sc.nextDouble();
- c = (f - 32) * 5/9;
- System.out.println("That's" + c + " degrees");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement