Advertisement
JoseLargo

p1e2

Nov 10th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. package p1e2;
  2.  
  3. import java.util.Scanner;
  4. public class P1e2 {
  5.  
  6.  
  7.     public static void main(String[] args) {
  8.         Scanner sc= new Scanner(System.in);
  9.         double far, centi;
  10.        
  11.         System.out.print("Introduzca grados en farenheit ");
  12.         far=sc.nextDouble();
  13.         centi=(far*9)/5+32;
  14.         System.out.println("Los "+far+" grados farenheit, seran "+centi+"ΒΊ centigrados");
  15.     }
  16.    
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement